Skip to content

Commit

Permalink
Finished support (but not very good support) for delay functions to t…
Browse files Browse the repository at this point in the history
…he adevs backend

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@14285 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
smiz committed Dec 7, 2012
1 parent 5e8c6eb commit 85a837b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Compiler/Template/CodegenAdevs.tpl
Expand Up @@ -503,6 +503,11 @@ case SIMCODE(modelInfo = MODELINFO(vars = vars as SIMVARS(__))) then
double ttg = samples[i]->timeToEvent(timeValue);
if (ttg < ttgMin) ttgMin = ttg;
}
for (int i = 0; i < numDelays(); i++)
{
double ttg = delays[i]->getMaxDelay();
if (ttg < ttgMin) ttgMin = ttg;
}
return ttgMin;
}

Expand Down

0 comments on commit 85a837b

Please sign in to comment.