Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjoint event #1539

Draft
wants to merge 79 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
2d2b51f
add model specific adjoint event update function signatures
paulstapor Jun 16, 2021
3997c70
add symbolic computations for adjoit updates at heavisides
paulstapor Jun 18, 2021
9caa9e5
adding interface to using model specific implementations of deltaxB a…
paulstapor Jun 18, 2021
2b9c778
adjoint heavisides are working now
paulstapor Jul 5, 2021
649c999
heaviside functions working, events only for not state-dependent trig…
paulstapor Jul 12, 2021
6b4713c
not too complex events work in backward mode. Lets try to tackle the …
paulstapor Jul 25, 2021
2b78398
functionality implemented, jst need to clean up
paulstapor Jul 27, 2021
33761ab
added tests
paulstapor Aug 5, 2021
73fefb2
tighten tolerances for adjoints
paulstapor Aug 5, 2021
94eed87
Merge branch 'develop' into adjoint_event
paulstapor Aug 5, 2021
1372cce
Merge branch 'develop' into adjoint_event
dweindl Oct 9, 2021
c7c57bb
Merge branch 'develop' into adjoint_event
dweindl Oct 17, 2021
1c1b4de
Update changed signature in matlab code generation
dweindl Oct 17, 2021
9144dc4
Update changed signature in test model
dweindl Oct 17, 2021
2534ce4
Regenerate matlab models
dweindl Oct 17, 2021
ed22629
Fix doc
dweindl Oct 17, 2021
ccc9d03
Remove unused Model::updateHeavisideB_eventwise
dweindl Oct 17, 2021
83c229c
swig ignore Model::fxBdot
dweindl Oct 17, 2021
cf0c6b2
remove dead code
dweindl Oct 17, 2021
672975c
cleanup
dweindl Oct 18, 2021
ee0b105
sphinx?
dweindl Oct 18, 2021
7ffa5a9
swig ignore fxbdot
dweindl Oct 18, 2021
954615c
Merge branch 'develop' into adjoint_event
Oct 20, 2021
44b20a4
Merge branch 'develop' into adjoint_event
dweindl Nov 5, 2021
7ea097f
Merge branch 'develop' into adjoint_event
dweindl Nov 18, 2021
41119d6
Merge branch 'develop' into adjoint_event
dweindl Dec 10, 2021
b39c7bb
Merge branch 'develop' into adjoint_event
dweindl Dec 10, 2021
6b1039a
remove empty tests/estimate_Leonhardt_NBM2014.py
dweindl Dec 10, 2021
822a7d0
Merge branch 'develop' into adjoint_event
dweindl Dec 11, 2021
e401eb4
Merge branch 'develop' into adjoint_event
dweindl Jan 10, 2022
e545514
Merge branch 'develop' into adjoint_event
dweindl Feb 8, 2022
b27bdf1
last status of work in progress
paulstapor Feb 10, 2022
3d0d582
Merge branch 'adjoint_event' of github.com:ICB-DCM/AMICI into adjoint…
paulstapor Feb 10, 2022
f77b601
Merge remote-tracking branch 'origin/develop' into adjoint_event
dweindl Jan 31, 2023
a5523b1
fixup merge
dweindl Jan 31, 2023
8661ed5
fixup
dweindl Jan 31, 2023
ff9d3d4
Merge branch 'develop' into adjoint_event
dweindl Jan 31, 2023
d5e421e
Merge remote-tracking branch 'origin/develop' into adjoint_event
dweindl Jan 31, 2023
e6a8014
verbose
dweindl Jan 31, 2023
ccb0677
fix windows?
dweindl Jan 31, 2023
54e5465
Merge branch 'develop' into adjoint_event
dweindl Feb 1, 2023
489e75a
fdeltaxB tcl
dweindl Feb 11, 2023
fdcf30a
fixup
dweindl Feb 11, 2023
59a5e44
regenerate models
dweindl Feb 11, 2023
5d589ff
fix sign - fixes test_models[nested_events]
dweindl Feb 11, 2023
3ac9467
Cleanup
dweindl Feb 11, 2023
cf2ee13
check_trajectories_with_adjoint_sensitivities
dweindl Feb 11, 2023
346729a
cleanup
dweindl Feb 11, 2023
e7b99ce
..
dweindl Feb 11, 2023
8089d78
cleanup
dweindl Feb 12, 2023
c06b487
cleanup
dweindl Feb 12, 2023
9ea1aa5
Merge branch 'develop' into adjoint_event
dweindl Feb 13, 2023
7740dbf
Fix hdf5.cpp
stephanmg Feb 14, 2023
707a9c0
Merge branch 'develop' into adjoint_event
dweindl May 11, 2023
9ac2e77
Merge branch 'develop' into adjoint_event
dweindl May 11, 2023
f2e61b1
Merge branch 'develop' into adjoint_event
dweindl May 16, 2023
655810c
..
dweindl May 16, 2023
365b724
error messages
dweindl May 16, 2023
af1a2be
eps = 1e-5
dweindl May 16, 2023
e4ac2e6
Merge remote-tracking branch 'origin/develop' into adjoint_event
dweindl May 16, 2023
18e6e65
cleanup
dweindl May 17, 2023
2244ba1
..
dweindl May 17, 2023
2ca11c2
remove dbg?
dweindl May 17, 2023
8ea5bbb
unrelated
dweindl May 17, 2023
a5b515e
Add test for events with state-dependent `ddeltaxd{t,p,x}` (#2092)
dweindl May 16, 2023
ec1903b
Revert "remove dbg?"
dweindl May 17, 2023
3f4bbb3
fix minus
dweindl May 17, 2023
bb24068
Merge branch 'develop' into adjoint_event
dweindl May 24, 2023
020b2b1
Merge branch 'develop' into adjoint_event
dweindl May 25, 2023
0dfd25e
Merge branch 'develop' into adjoint_event
dweindl Dec 12, 2023
34fde49
black
dweindl Dec 12, 2023
8ea8bdf
Merge branch 'develop' into adjoint_event
dweindl Dec 14, 2023
7e32da0
Merge branch 'develop' into adjoint_event
dweindl Jan 16, 2024
114319f
Merge branch 'develop' into adjoint_event
dweindl Oct 9, 2024
a8aea88
simplify
dweindl Oct 9, 2024
f66c6a5
Merge branch 'develop' into adjoint_event
dweindl Oct 9, 2024
8559b8e
simplify, stricter tolerances, dbg output
dweindl Oct 9, 2024
20db8dc
..
dweindl Oct 9, 2024
0cede49
Benchmark problems look good
dweindl Oct 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions include/amici/abstract_model.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,21 @@ class AbstractModel {
AmiVector const& sx, AmiVector const& sdx, AmiVector& sxdot
) = 0;

/**
* @brief Residual function of adjoint state
* @param t time
* @param x state
* @param dx time derivative of state (DAE only)
* @param xB adjoint state
* @param dxB time derivative of adjoint state (DAE only)
* @param xBdot array to which values of the residual function will be
* written
*/
virtual void fxBdot(
realtype t, AmiVector const& x, AmiVector const& dx,
AmiVector const& xB, AmiVector const& dxB, AmiVector& xBdot
) = 0;

/**
* @brief Residual function backward when running in steady state mode
* @param t time
Expand Down Expand Up @@ -569,11 +584,14 @@ class AbstractModel {
* @param xdot new model right hand side
* @param xdot_old previous model right hand side
* @param xB current adjoint state
* @param xBdot right hand side of adjoint state
* @param tcl total abundances for conservation laws
*/
virtual void fdeltaxB(
realtype* deltaxB, realtype const t, realtype const* x,
realtype const* p, realtype const* k, realtype const* h, int ie,
realtype const* xdot, realtype const* xdot_old, realtype const* xB
realtype const* xdot, realtype const* xdot_old, realtype const* xB,
realtype const* xBdot, realtype const* tcl
);

/**
Expand All @@ -589,11 +607,13 @@ class AbstractModel {
* @param xdot new model right hand side
* @param xdot_old previous model right hand side
* @param xB adjoint state
* @param xBdot right hand side of adjoint state
*/
virtual void fdeltaqB(
realtype* deltaqB, realtype const t, realtype const* x,
realtype const* p, realtype const* k, realtype const* h, int ip, int ie,
realtype const* xdot, realtype const* xdot_old, realtype const* xB
realtype const* xdot, realtype const* xdot_old, realtype const* xB,
realtype const* xBdot
);

/**
Expand Down
2 changes: 2 additions & 0 deletions include/amici/backwardproblem.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ class BackwardProblem {
AmiVector xQB_;
/** array of state vectors at discontinuities*/
std::vector<AmiVector> x_disc_;
/** array of old state vectors at discontinuities*/
std::vector<AmiVector> x_old_disc_;
/** array of differential state vectors at discontinuities*/
std::vector<AmiVector> xdot_disc_;
/** array of old differential state vectors at discontinuities*/
Expand Down
12 changes: 12 additions & 0 deletions include/amici/forwardproblem.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,14 @@ class ForwardProblem {
return x_disc_;
}

/**
* @brief Accessor for x_old_disc
* @return x_old_disc
*/
std::vector<AmiVector> const& getStatesBeforeDiscontinuities() const {
return x_old_disc_;
}

/**
* @brief Accessor for xdot_disc
* @return xdot_disc
Expand Down Expand Up @@ -346,6 +354,10 @@ class ForwardProblem {
* discontinuities, extended as needed (dimension dynamic) */
std::vector<AmiVector> x_disc_;

/** array of old state vectors (dimension nx) for all so far encountered
* discontinuities, extended as needed (dimension dynamic) */
std::vector<AmiVector> x_old_disc_;

/** array of differential state vectors (dimension nx) for all so far
* encountered discontinuities, extended as needed (dimension dynamic) */
std::vector<AmiVector> xdot_disc_;
Expand Down
9 changes: 6 additions & 3 deletions include/amici/model.h
Original file line number Diff line number Diff line change
Expand Up @@ -1282,10 +1282,11 @@ class Model : public AbstractModel, public ModelDimensions {
* @param x Current state
* @param xdot Current residual function values
* @param xdot_old Value of residual function before event
* @param xBdot right hand side of adjoint state
*/
void addAdjointStateEventUpdate(
AmiVector& xB, int const ie, realtype const t, AmiVector const& x,
AmiVector const& xdot, AmiVector const& xdot_old
AmiVector const& xdot, AmiVector const& xdot_old, AmiVector const& xBdot
);

/**
Expand All @@ -1297,10 +1298,12 @@ class Model : public AbstractModel, public ModelDimensions {
* @param xB Current adjoint state
* @param xdot Current residual function values
* @param xdot_old Value of residual function before event
* @param xBdot right hand side of adjoint state
*/
void addAdjointQuadratureEventUpdate(
AmiVector xQB, int const ie, realtype const t, AmiVector const& x,
AmiVector const& xB, AmiVector const& xdot, AmiVector const& xdot_old
AmiVector& xQB, int const ie, realtype const t, AmiVector const& x,
AmiVector const& xB, AmiVector const& xdot, AmiVector const& xdot_old,
AmiVector const& xBdot
);

/**
Expand Down
5 changes: 5 additions & 0 deletions include/amici/model_dae.h
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,11 @@ class Model_DAE : public Model {
*/
void fxdot(realtype t, const_N_Vector x, const_N_Vector dx, N_Vector xdot);

void fxBdot(
realtype t, AmiVector const& x, AmiVector const& dx,
AmiVector const& xB, AmiVector const& dxB, AmiVector& xBdot
) override;

/**
* @brief Right hand side of differential equation for adjoint state xB
* @param t timepoint
Expand Down
8 changes: 7 additions & 1 deletion include/amici/model_ode.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,14 +202,20 @@ class Model_ODE : public Model {
*/
void fxdot(realtype t, const_N_Vector x, N_Vector xdot);

void fxBdot(
realtype t, AmiVector const& x, AmiVector const& dx,
AmiVector const& xB, AmiVector const& dxB, AmiVector& xBdot
) override;

/**
* @brief Implementation of fxBdot at the N_Vector level
* @param t timepoint
* @param x Vector with the states
* @param xB Vector with the adjoint states
* @param xBdot Vector with the adjoint right hand side
*/
void fxBdot(realtype t, N_Vector x, N_Vector xB, N_Vector xBdot);
void
fxBdot(realtype t, const_N_Vector x, const_N_Vector xB, N_Vector xBdot);

/**
* @brief Implementation of fqBdot at the N_Vector level
Expand Down
4 changes: 2 additions & 2 deletions matlab/@amifun/getArgs.m
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@
case 'deltax'
this.argstr = '(double *deltax, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const int ie, const realtype *xdot, const realtype *xdot_old)';
case 'deltaxB'
this.argstr = '(double *deltaxB, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const int ie, const realtype *xdot, const realtype *xdot_old, const realtype *xB)';
this.argstr = '(double *deltaxB, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const int ie, const realtype *xdot, const realtype *xdot_old, const realtype *xB, const realtype *xBdot, const realtype *tcl)';
case 'deltaqB'
this.argstr = '(double *deltaqB, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const int ip, const int ie, const realtype *xdot, const realtype *xdot_old, const realtype *xB)';
this.argstr = '(double *deltaqB, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const int ip, const int ie, const realtype *xdot, const realtype *xdot_old, const realtype *xB, const realtype *xBdot)';
case 'deltasx'
this.argstr = '(double *deltasx, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const realtype *w, const int ip, const int ie, const realtype *xdot, const realtype *xdot_old, const realtype *sx, const realtype *stau, const realtype *tcl)';
case 'dxdotdp'
Expand Down
8 changes: 4 additions & 4 deletions models/model_calvetti/model_calvetti.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef _amici_model_calvetti_h
#define _amici_model_calvetti_h
/* Generated by amiwrap (R2017b) d69c026f8f8a89a13f1fa1307548f2b8f7045fe1 */
/* Generated by amiwrap (R2017b) 7e32da0621a3696d3bed0e2ceb0a7176767f3830 */
#include <cmath>
#include <memory>
#include "amici/defines.h"
Expand Down Expand Up @@ -72,7 +72,7 @@

amici::Model* clone() const override { return new Model_model_calvetti(*this); };

std::string getAmiciCommit() const override { return "d69c026f8f8a89a13f1fa1307548f2b8f7045fe1"; };
std::string getAmiciCommit() const override { return "7e32da0621a3696d3bed0e2ceb0a7176767f3830"; };

Check warning on line 75 in models/model_calvetti/model_calvetti.h

View check run for this annotation

Codecov / codecov/patch

models/model_calvetti/model_calvetti.h#L75

Added line #L75 was not covered by tests

void fJSparse(SUNMatrixContent_Sparse JSparse, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const realtype cj, const realtype *dx, const realtype *w, const realtype *dwdx) override {
JSparse_model_calvetti(JSparse, t, x, p, k, h, cj, dx, w, dwdx);
Expand Down Expand Up @@ -112,7 +112,7 @@
void fdJzdz(double *dJzdz, const int iz, const realtype *p, const realtype *k, const double *z, const double *sigmaz, const double *mz) override {
}

void fdeltaqB(double *deltaqB, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const int ip, const int ie, const realtype *xdot, const realtype *xdot_old, const realtype *xB) override {
void fdeltaqB(double *deltaqB, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const int ip, const int ie, const realtype *xdot, const realtype *xdot_old, const realtype *xB, const realtype *xBdot) override {

Check warning on line 115 in models/model_calvetti/model_calvetti.h

View check run for this annotation

Codecov / codecov/patch

models/model_calvetti/model_calvetti.h#L115

Added line #L115 was not covered by tests
}

void fdeltasx(double *deltasx, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const realtype *w, const int ip, const int ie, const realtype *xdot, const realtype *xdot_old, const realtype *sx, const realtype *stau, const realtype *tcl) override {
Expand All @@ -121,7 +121,7 @@
void fdeltax(double *deltax, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const int ie, const realtype *xdot, const realtype *xdot_old) override {
}

void fdeltaxB(double *deltaxB, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const int ie, const realtype *xdot, const realtype *xdot_old, const realtype *xB) override {
void fdeltaxB(double *deltaxB, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const int ie, const realtype *xdot, const realtype *xdot_old, const realtype *xB, const realtype *xBdot, const realtype *tcl) override {

Check warning on line 124 in models/model_calvetti/model_calvetti.h

View check run for this annotation

Codecov / codecov/patch

models/model_calvetti/model_calvetti.h#L124

Added line #L124 was not covered by tests
}

void fdrzdp(double *drzdp, const int ie, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const int ip) override {
Expand Down
8 changes: 4 additions & 4 deletions models/model_dirac/model_dirac.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef _amici_model_dirac_h
#define _amici_model_dirac_h
/* Generated by amiwrap (R2017b) d69c026f8f8a89a13f1fa1307548f2b8f7045fe1 */
/* Generated by amiwrap (R2017b) 7e32da0621a3696d3bed0e2ceb0a7176767f3830 */
#include <cmath>
#include <memory>
#include "amici/defines.h"
Expand Down Expand Up @@ -72,7 +72,7 @@

amici::Model* clone() const override { return new Model_model_dirac(*this); };

std::string getAmiciCommit() const override { return "d69c026f8f8a89a13f1fa1307548f2b8f7045fe1"; };
std::string getAmiciCommit() const override { return "7e32da0621a3696d3bed0e2ceb0a7176767f3830"; };

Check warning on line 75 in models/model_dirac/model_dirac.h

View check run for this annotation

Codecov / codecov/patch

models/model_dirac/model_dirac.h#L75

Added line #L75 was not covered by tests

void fJSparse(SUNMatrixContent_Sparse JSparse, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const realtype *w, const realtype *dwdx) override {
JSparse_model_dirac(JSparse, t, x, p, k, h, w, dwdx);
Expand Down Expand Up @@ -108,7 +108,7 @@
void fdJzdz(double *dJzdz, const int iz, const realtype *p, const realtype *k, const double *z, const double *sigmaz, const double *mz) override {
}

void fdeltaqB(double *deltaqB, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const int ip, const int ie, const realtype *xdot, const realtype *xdot_old, const realtype *xB) override {
void fdeltaqB(double *deltaqB, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const int ip, const int ie, const realtype *xdot, const realtype *xdot_old, const realtype *xB, const realtype *xBdot) override {

Check warning on line 111 in models/model_dirac/model_dirac.h

View check run for this annotation

Codecov / codecov/patch

models/model_dirac/model_dirac.h#L111

Added line #L111 was not covered by tests
}

void fdeltasx(double *deltasx, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const realtype *w, const int ip, const int ie, const realtype *xdot, const realtype *xdot_old, const realtype *sx, const realtype *stau, const realtype *tcl) override {
Expand All @@ -119,7 +119,7 @@
deltax_model_dirac(deltax, t, x, p, k, h, ie, xdot, xdot_old);
}

void fdeltaxB(double *deltaxB, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const int ie, const realtype *xdot, const realtype *xdot_old, const realtype *xB) override {
void fdeltaxB(double *deltaxB, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const int ie, const realtype *xdot, const realtype *xdot_old, const realtype *xB, const realtype *xBdot, const realtype *tcl) override {

Check warning on line 122 in models/model_dirac/model_dirac.h

View check run for this annotation

Codecov / codecov/patch

models/model_dirac/model_dirac.h#L122

Added line #L122 was not covered by tests
}

void fdrzdp(double *drzdp, const int ie, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const int ip) override {
Expand Down
8 changes: 4 additions & 4 deletions models/model_events/model_events.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef _amici_model_events_h
#define _amici_model_events_h
/* Generated by amiwrap (R2017b) d69c026f8f8a89a13f1fa1307548f2b8f7045fe1 */
/* Generated by amiwrap (R2017b) 7e32da0621a3696d3bed0e2ceb0a7176767f3830 */
#include <cmath>
#include <memory>
#include "amici/defines.h"
Expand Down Expand Up @@ -86,7 +86,7 @@

amici::Model* clone() const override { return new Model_model_events(*this); };

std::string getAmiciCommit() const override { return "d69c026f8f8a89a13f1fa1307548f2b8f7045fe1"; };
std::string getAmiciCommit() const override { return "7e32da0621a3696d3bed0e2ceb0a7176767f3830"; };

Check warning on line 89 in models/model_events/model_events.h

View check run for this annotation

Codecov / codecov/patch

models/model_events/model_events.h#L89

Added line #L89 was not covered by tests

void fJSparse(SUNMatrixContent_Sparse JSparse, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const realtype *w, const realtype *dwdx) override {
JSparse_model_events(JSparse, t, x, p, k, h, w, dwdx);
Expand Down Expand Up @@ -128,7 +128,7 @@
dJzdz_model_events(dJzdz, iz, p, k, z, sigmaz, mz);
}

void fdeltaqB(double *deltaqB, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const int ip, const int ie, const realtype *xdot, const realtype *xdot_old, const realtype *xB) override {
void fdeltaqB(double *deltaqB, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const int ip, const int ie, const realtype *xdot, const realtype *xdot_old, const realtype *xB, const realtype *xBdot) override {

Check warning on line 131 in models/model_events/model_events.h

View check run for this annotation

Codecov / codecov/patch

models/model_events/model_events.h#L131

Added line #L131 was not covered by tests
}

void fdeltasx(double *deltasx, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const realtype *w, const int ip, const int ie, const realtype *xdot, const realtype *xdot_old, const realtype *sx, const realtype *stau, const realtype *tcl) override {
Expand All @@ -138,7 +138,7 @@
void fdeltax(double *deltax, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const int ie, const realtype *xdot, const realtype *xdot_old) override {
}

void fdeltaxB(double *deltaxB, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const int ie, const realtype *xdot, const realtype *xdot_old, const realtype *xB) override {
void fdeltaxB(double *deltaxB, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const int ie, const realtype *xdot, const realtype *xdot_old, const realtype *xB, const realtype *xBdot, const realtype *tcl) override {

Check warning on line 141 in models/model_events/model_events.h

View check run for this annotation

Codecov / codecov/patch

models/model_events/model_events.h#L141

Added line #L141 was not covered by tests
}

void fdrzdp(double *drzdp, const int ie, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const int ip) override {
Expand Down
8 changes: 4 additions & 4 deletions models/model_jakstat_adjoint/model_jakstat_adjoint.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef _amici_model_jakstat_adjoint_h
#define _amici_model_jakstat_adjoint_h
/* Generated by amiwrap (R2017b) d69c026f8f8a89a13f1fa1307548f2b8f7045fe1 */
/* Generated by amiwrap (R2017b) 7e32da0621a3696d3bed0e2ceb0a7176767f3830 */
#include <cmath>
#include <memory>
#include "amici/defines.h"
Expand Down Expand Up @@ -75,7 +75,7 @@

amici::Model* clone() const override { return new Model_model_jakstat_adjoint(*this); };

std::string getAmiciCommit() const override { return "d69c026f8f8a89a13f1fa1307548f2b8f7045fe1"; };
std::string getAmiciCommit() const override { return "7e32da0621a3696d3bed0e2ceb0a7176767f3830"; };

Check warning on line 78 in models/model_jakstat_adjoint/model_jakstat_adjoint.h

View check run for this annotation

Codecov / codecov/patch

models/model_jakstat_adjoint/model_jakstat_adjoint.h#L78

Added line #L78 was not covered by tests

void fJSparse(SUNMatrixContent_Sparse JSparse, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const realtype *w, const realtype *dwdx) override {
JSparse_model_jakstat_adjoint(JSparse, t, x, p, k, h, w, dwdx);
Expand Down Expand Up @@ -111,7 +111,7 @@
void fdJzdz(double *dJzdz, const int iz, const realtype *p, const realtype *k, const double *z, const double *sigmaz, const double *mz) override {
}

void fdeltaqB(double *deltaqB, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const int ip, const int ie, const realtype *xdot, const realtype *xdot_old, const realtype *xB) override {
void fdeltaqB(double *deltaqB, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const int ip, const int ie, const realtype *xdot, const realtype *xdot_old, const realtype *xB, const realtype *xBdot) override {

Check warning on line 114 in models/model_jakstat_adjoint/model_jakstat_adjoint.h

View check run for this annotation

Codecov / codecov/patch

models/model_jakstat_adjoint/model_jakstat_adjoint.h#L114

Added line #L114 was not covered by tests
}

void fdeltasx(double *deltasx, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const realtype *w, const int ip, const int ie, const realtype *xdot, const realtype *xdot_old, const realtype *sx, const realtype *stau, const realtype *tcl) override {
Expand All @@ -120,7 +120,7 @@
void fdeltax(double *deltax, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const int ie, const realtype *xdot, const realtype *xdot_old) override {
}

void fdeltaxB(double *deltaxB, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const int ie, const realtype *xdot, const realtype *xdot_old, const realtype *xB) override {
void fdeltaxB(double *deltaxB, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const int ie, const realtype *xdot, const realtype *xdot_old, const realtype *xB, const realtype *xBdot, const realtype *tcl) override {

Check warning on line 123 in models/model_jakstat_adjoint/model_jakstat_adjoint.h

View check run for this annotation

Codecov / codecov/patch

models/model_jakstat_adjoint/model_jakstat_adjoint.h#L123

Added line #L123 was not covered by tests
}

void fdrzdp(double *drzdp, const int ie, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const int ip) override {
Expand Down
Loading
Loading