Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

Commit

Permalink
Add support for firstTick to c runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
lochel authored and OpenModelica-Hudson committed Feb 16, 2017
1 parent e4071b5 commit fc47277
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Compiler/Template/CodegenCFunctions.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5538,6 +5538,8 @@ template daeExpCall(Exp call, Context context, Text &preExp, Text &varDecls, Tex
'data->simulationInfo->clocksData[clockIndex].interval'
case CALL(path=IDENT(name="previous"), expLst={arg as CREF(__)}) then
'<%cref(crefPrefixPrevious(arg.componentRef))%>'
case CALL(path=IDENT(name="firstTick")) then
'(data->simulationInfo->clocksData[clockIndex].cnt == 0)'
case CALL(path=IDENT(name="$_clkfire"), expLst={arg as ICONST(__)}) then
'fireClock(data, threadData, <%intSub(arg.integer,1)%>, data->localData[0]->timeValue)'

Expand Down

0 comments on commit fc47277

Please sign in to comment.