Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Feb 24, 2024
1 parent 19d1cd8 commit 8c61cfe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,11 @@ void Model::initEvents(
roots_found.at(ie) = 1;
}
}

// evaluate static expressions once
// (w and dwdw will be evaluated from within dwdp/dwdx)
fdwdx(simulation_parameters_.tstart_, x.data(), true);
fdwdp(simulation_parameters_.tstart_, x.data(), true);
}

int Model::nplist() const { return gsl::narrow<int>(state_.plist.size()); }
Expand Down

0 comments on commit 8c61cfe

Please sign in to comment.