Skip to content

Commit

Permalink
Add equationIndex to function_storeDelayed (#7287)
Browse files Browse the repository at this point in the history
Fixing track ticket 6416
  • Loading branch information
AnHeuermann committed Mar 10, 2021
1 parent d2dc4f9 commit fcc2724
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions OMCompiler/Compiler/Template/CodegenC.tpl
Expand Up @@ -3360,6 +3360,7 @@ template functionStoreDelayed(DelayedExpression delayed, String modelNamePrefix)
let delayExp = daeExp(d, contextSimulationNonDiscrete, &preExp, &varDecls, &auxFunction)
let delayExpMax = daeExp(delayMax, contextSimulationNonDiscrete, &preExp, &varDecls, &auxFunction)
<<
equationIndexes[1] = <%id%>;
<%preExp%>
storeDelayedExpression(data, threadData, <%id%>, <%eRes%>, data->localData[0]->timeValue, <%delayExp%>, <%delayExpMax%>);<%\n%>
>>
Expand All @@ -3370,6 +3371,7 @@ template functionStoreDelayed(DelayedExpression delayed, String modelNamePrefix)
{
TRACE_PUSH
int equationIndexes[2] = {1,-1};
<%varDecls%>
<%storePart%>
Expand Down

0 comments on commit fcc2724

Please sign in to comment.