Skip to content

Commit

Permalink
inc
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Dec 4, 2023
1 parent 5d3ab73 commit f3cc6f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/forwardproblem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<realtype>::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_);
Expand Down
2 changes: 2 additions & 0 deletions src/solver_cvodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#include <colamd.h>
#include <klu.h>

#include <sstream>

#define ZERO RCONST(0.0)
#define ONE RCONST(1.0)
#define FOUR RCONST(4.0)
Expand Down

0 comments on commit f3cc6f7

Please sign in to comment.