Skip to content

Commit 23e8045

Browse files
authored
Fix ModelStateDerived copy ctor (#2612)
SUNContext for `x_pos_tmp_` wasn't updated after copying. Hopefully fixes #2607.
1 parent 2366c2e commit 23e8045

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/amici/model_state.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ struct ModelStateDerived {
175175
dwdx.set_ctx(sunctx_);
176176
}
177177
sspl_.set_ctx(sunctx_);
178+
x_pos_tmp_.set_ctx(sunctx_);
178179
dwdw_.set_ctx(sunctx_);
179180
dJydy_dense_.set_ctx(sunctx_);
180181
}

0 commit comments

Comments
 (0)