Skip to content

Commit

Permalink
added case for extraPolate
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@21571 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Vitalij Ruge committed Jul 18, 2014
1 parent 154d6b1 commit 630cb80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SimulationRuntime/c/simulation/solver/nonlinearSystem.c
Expand Up @@ -396,7 +396,7 @@ double extraPolate(DATA *data, double old1, double old2)
{
double retValue;

if(data->localData[1]->timeValue == data->localData[2]->timeValue)
if(data->localData[1]->timeValue == data->localData[2]->timeValue || old1 == old2)
{
retValue = old1;
}
Expand Down

0 comments on commit 630cb80

Please sign in to comment.