From 23e8045cb5a450868fda2ee8b88d3daefe56ac02 Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Mon, 2 Dec 2024 13:22:47 +0100 Subject: [PATCH] Fix ModelStateDerived copy ctor (#2612) SUNContext for `x_pos_tmp_` wasn't updated after copying. Hopefully fixes #2607. --- include/amici/model_state.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/amici/model_state.h b/include/amici/model_state.h index defb12d4c0..6e2c1b58fb 100644 --- a/include/amici/model_state.h +++ b/include/amici/model_state.h @@ -175,6 +175,7 @@ struct ModelStateDerived { dwdx.set_ctx(sunctx_); } sspl_.set_ctx(sunctx_); + x_pos_tmp_.set_ctx(sunctx_); dwdw_.set_ctx(sunctx_); dJydy_dense_.set_ctx(sunctx_); }