Skip to content

Commit 757ef85

Browse files
Revert "Configure newton tolerance depending on RK step tolerance (OpenModelica#14057)" (OpenModelica#14060)
This reverts commit 9ee9d8a.
1 parent be8ee53 commit 757ef85

File tree

1 file changed

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

1 file changed

+1
-7
lines changed

OMCompiler/SimulationRuntime/c/simulation/solver/gbode_nls.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -485,13 +485,7 @@ NLS_SOLVER_STATUS solveNLS_gb(DATA *data, threadData_t *threadData, NONLINEAR_SY
485485
// Debug nonlinear solution process
486486
rtclock_t clock;
487487
double cpu_time_used;
488-
double newtonTol;
489-
490-
if(omc_flag[FLAG_NEWTON_FTOL] || omc_flag[FLAG_NEWTON_XTOL]) {
491-
newtonTol = fmax(newtonFTol, newtonXTol);
492-
} else {
493-
newtonTol = data->simulationInfo->tolerance*1e-3;
494-
}
488+
double newtonTol = fmax(newtonFTol, newtonXTol);
495489

496490
if (OMC_ACTIVE_STREAM(OMC_LOG_GBODE_NLS)) {
497491
rt_ext_tp_tick(&clock);

0 commit comments

Comments
 (0)