Skip to content

Commit 9613f29

Browse files
[C] Fix typo in gbode (#11283)
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>
1 parent ca25f7b commit 9613f29

File tree

1 file changed

+1
-1
lines changed
  • OMCompiler/SimulationRuntime/c/simulation/solver

1 file changed

+1
-1
lines changed

OMCompiler/SimulationRuntime/c/simulation/solver/gbode_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1776,7 +1776,7 @@ int gbode_singlerate(DATA *data, threadData_t *threadData, SOLVER_INFO *solverIn
17761776
gbData->stepSizeValues[i] = gbData->stepSizeValues[i - 1];
17771777
}
17781778
// update new values
1779-
gbData->errValues[0] = _omc_gen_maximumVectorNorm(gbData->err, nStates);
1779+
gbData->errValues[0] = err = _omc_gen_maximumVectorNorm(gbData->err, nStates);
17801780
gbData->stepSizeValues[0] = gbData->stepSize;
17811781

17821782
// Store performed step size for latter interpolation

0 commit comments

Comments
 (0)