Skip to content

Commit

Permalink
Fix MeasureTime.mos?
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@15010 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Jan 30, 2013
1 parent 1d105cb commit 2212f21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Compiler/Template/CodegenC.tpl
Expand Up @@ -330,6 +330,7 @@ template functionInitializeDataStruc2(ModelInfo modelInfo, list<SimEqSystem> all
let &eqnsDefines = buffer ""
let &reverseProf = buffer ""
let eqnInfo = equationInfo(allEquations,stateSets,&eqnsDefines,&reverseProf,vi.numEquations)
let nProfileBlocks = System.tmpTick() /* tmpTick() was called in equationInfo(). Calling it again will get the size since it started at 0. */
<<
/* Some empty lines, since emptyCount is not implemented in susan! */
<%eqnsDefines%>
Expand All @@ -340,7 +341,7 @@ template functionInitializeDataStruc2(ModelInfo modelInfo, list<SimEqSystem> all
<%eqnInfo%>
memcpy(data->modelData.equationInfo, &equationInfo, data->modelData.nEquations*sizeof(EQUATION_INFO));
data->modelData.nProfileBlocks = <%System.tmpTick() /* tmpTick() was called in equationInfo(). Calling it again will get the size since it started at 0. */%>;
data->modelData.nProfileBlocks = <% nProfileBlocks %>;
data->modelData.equationInfo_reverse_prof_index = (int*) malloc(data->modelData.nProfileBlocks*sizeof(int));
<%reverseProf%>
}
Expand Down

0 comments on commit 2212f21

Please sign in to comment.