Skip to content

Commit

Permalink
[C] Fix typo in gbode (#11283) (#11297)
Browse files Browse the repository at this point in the history
The single rate solver could not get out of the loop because `err`
was not set correctly.

Fixes #11280

Co-authored-by: bernhardbachmann <bernhardbachmann@users.noreply.github.com>
(cherry picked from commit 9613f29)
  • Loading branch information
phannebohm committed Oct 2, 2023
1 parent 89d041b commit e8f11dd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1776,7 +1776,7 @@ int gbode_singlerate(DATA *data, threadData_t *threadData, SOLVER_INFO *solverIn
gbData->stepSizeValues[i] = gbData->stepSizeValues[i - 1];
}
// update new values
gbData->errValues[0] = _omc_gen_maximumVectorNorm(gbData->err, nStates);
gbData->errValues[0] = err = _omc_gen_maximumVectorNorm(gbData->err, nStates);
gbData->stepSizeValues[0] = gbData->stepSize;

// Store performed step size for latter interpolation
Expand Down

0 comments on commit e8f11dd

Please sign in to comment.