Skip to content

Commit

Permalink
Fix ModelStateDerived copy ctor (#2612)
Browse files Browse the repository at this point in the history
SUNContext for `x_pos_tmp_` wasn't updated after copying.

Hopefully fixes #2607.
  • Loading branch information
dweindl authored Dec 2, 2024
1 parent 2366c2e commit 23e8045
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/amici/model_state.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_);
}
Expand Down

0 comments on commit 23e8045

Please sign in to comment.