Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Dec 4, 2023
1 parent 439a7c1 commit 7a8d351
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 1 addition & 2 deletions include/amici/model_ode.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ class Model_ODE : public Model {
std::vector<int> const& z2event, bool const pythonGenerated = false,
int const ndxdotdp_explicit = 0, int const ndxdotdx_explicit = 0,
int const w_recursion_depth = 0,
std::map<realtype, std::vector<int>> state_independent_events
= {}
std::map<realtype, std::vector<int>> state_independent_events = {}
)
: Model(
model_dimensions, simulation_parameters, o2mode, idlist, z2event,
Expand Down
7 changes: 4 additions & 3 deletions src/forwardproblem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,10 @@ void ForwardProblem::workForwardProblem() {
while (t_ < next_t_out) {
// next stop time is either next output timepoint or next
// time-triggered event
auto next_t_event = it_trigger_timepoints != trigger_timepoints.end()
? *it_trigger_timepoints
: std::numeric_limits<realtype>::infinity();
auto next_t_event
= it_trigger_timepoints != trigger_timepoints.end()
? *it_trigger_timepoints
: std::numeric_limits<realtype>::infinity();
auto next_t_stop = std::min(next_t_out, next_t_event);
int status = solver->run(next_t_stop);

Expand Down

0 comments on commit 7a8d351

Please sign in to comment.