Skip to content

Commit

Permalink
get initial rootvals
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Dec 5, 2023
1 parent d8e140c commit 36f98c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion include/amici/forwardproblem.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include "amici/vector.h"
#include <amici/amici.h>

#include <memory>
#include <sundials/sundials_direct.h>
#include <vector>

Expand Down
2 changes: 2 additions & 0 deletions src/forwardproblem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ void ForwardProblem::workForwardProblem() {

/* store initial state and sensitivity*/
initial_state_ = getSimulationState();
// store root information at t0
model->froot(t_, x_, dx_, rootvals_);

// get list of trigger timepoints for fixed-time triggered events
auto trigger_timepoints = model->get_trigger_timepoints();
Expand Down

0 comments on commit 36f98c7

Please sign in to comment.