From f3cc6f731029709714f7c1d6441930d88fe6fa2f Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Mon, 4 Dec 2023 14:35:50 +0100 Subject: [PATCH] inc --- src/forwardproblem.cpp | 4 ++-- src/solver_cvodes.cpp | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/forwardproblem.cpp b/src/forwardproblem.cpp index dfc0edaac6..960cccf616 100644 --- a/src/forwardproblem.cpp +++ b/src/forwardproblem.cpp @@ -128,15 +128,15 @@ void ForwardProblem::workForwardProblem() { if (next_t_out > model->t0()) { // Solve for next output timepoint while (t_ < next_t_out) { - // next stop time is either next output timepoint or next + // next stop time is next output timepoint or next // time-triggered event auto next_t_event = it_trigger_timepoints != trigger_timepoints.end() ? *it_trigger_timepoints : std::numeric_limits::infinity(); auto next_t_stop = std::min(next_t_out, next_t_event); - int status = solver->run(next_t_stop); + int status = solver->run(next_t_stop); /* sx will be copied from solver on demand if sensitivities are computed */ solver->writeSolution(&t_, x_, dx_, sx_, dx_); diff --git a/src/solver_cvodes.cpp b/src/solver_cvodes.cpp index ec96213bbf..b53be68c2e 100644 --- a/src/solver_cvodes.cpp +++ b/src/solver_cvodes.cpp @@ -13,6 +13,8 @@ #include #include +#include + #define ZERO RCONST(0.0) #define ONE RCONST(1.0) #define FOUR RCONST(4.0)