Skip to content

Commit

Permalink
....
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Sep 27, 2024
1 parent be02431 commit 8d6f107
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/solver_cvodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,8 @@ void CVodeSolver::solveB(realtype const tBout, int const itaskB) const {
if (force_reinit_postprocess_B_)
reInitPostProcessB(tBout);
int status = CVodeB(solver_memory_.get(), tBout, itaskB);
if (status != CV_SUCCESS)
// This does not seem to be documented, but CVodeB may also return CV_TSTOP_RETURN
if (status != CV_SUCCESS && status != CV_TSTOP_RETURN)
throw IntegrationFailureB(status, tBout);
solver_was_called_B_ = true;
}
Expand Down

0 comments on commit 8d6f107

Please sign in to comment.