From 8c61cfe31d26b20ab15e1581cab6c2111693ac6e Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Sat, 24 Feb 2024 19:40:00 +0100 Subject: [PATCH] .. --- src/model.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/model.cpp b/src/model.cpp index 88c9e6fa02..4a932e6e8d 100644 --- a/src/model.cpp +++ b/src/model.cpp @@ -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(state_.plist.size()); }