Skip to content

Commit

Permalink
- fix typo
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@20045 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
lochel committed Apr 8, 2014
1 parent 1aaf77d commit 1e5cdab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion SimulationRuntime/c/simulation/solver/model_help.c
Expand Up @@ -1027,7 +1027,7 @@ void deInitializeDataStruc(DATA *data)

void setZCtol(double relativeTol)
{
/* lochel: keep tolZS > 0 */
/* lochel: force tolZC > 0 */
tolZC = max(TOL_HYSTERESIS_ZEROCROSSINGS*relativeTol, TOL_HYSTERESIS_ZEROCROSSINGS*MINIMAL_STEP_SIZE);
infoStreamPrint(LOG_EVENTS_V, 0, "Set tolerance for zero-crossing hysteresis to: %e", tolZC);
}
Expand Down
6 changes: 1 addition & 5 deletions SimulationRuntime/c/simulation/solver/solver_main.c
Expand Up @@ -158,11 +158,7 @@ int initializeSolverData(DATA* data, SOLVER_INFO* solverInfo)
solverInfo->sampleEvents = 0;

/* set tolerance for ZeroCrossings */
if (simInfo->stepSize < simInfo->tolerance){
setZCtol(simInfo->stepSize);
} else{
setZCtol(simInfo->tolerance);
}
setZCtol(min(simInfo->stepSize, simInfo->tolerance));

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

0 comments on commit 1e5cdab

Please sign in to comment.