endless loop with negative start_time

1 post / 0 new
hanshell
Offline
Joined: 2015-10-07
endless loop with negative start_time

Hello,

In CS simulation a negative value of start_time results in endless loop in jmi_ode_solver.c  in function jmi_ode_solver_solve

My workaround line in 122 was helping:

static int jmi_ode_not_finished(jmi_real_t time, jmi_real_t final_time) {
return jmi_abs(time -final_time) > jmi_abs(JMI_ALMOST_EPS*final_time);
}

svn JModelica version 10113.

best regards

Johann