Skip to content

Commit

Permalink
- bug fix for #2437
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18525 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Willi Braun committed Dec 19, 2013
1 parent 774b3da commit e26706f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SimulationRuntime/c/simulation/solver/solver_main.c
Expand Up @@ -148,7 +148,7 @@ int initializeSolverData(DATA* data, SOLVER_INFO* solverInfo)
solverInfo->didEventStep = 0;
solverInfo->stateEvents = 0;
solverInfo->sampleEvents = 0;
solverInfo->stepPrecision = 15;
solverInfo->stepPrecision = fmin(15,abs(log10(simInfo->stepSize)+fmax(log10(simInfo->startTime),-4)+log10(simInfo->tolerance)));

if(solverInfo->solverMethod == 2)
{
Expand Down

0 comments on commit e26706f

Please sign in to comment.