Skip to content

Commit

Permalink
- fix indention
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@16767 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
lochel committed Aug 8, 2013
1 parent faa5d2b commit 060316d
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions Compiler/Template/CodegenC.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -9647,26 +9647,26 @@ template optimizationComponents1(ClassAttributes classAttribute, SimCode simCode
return -1;
}

/* objectiveIntegrand */
int lagrange(DATA* data, modelica_real* res)
{
<%varDecls1%>
<%preExp1%>
<%objectiveIntegrand%>
return -1;
}
/* objectiveIntegrand */
int lagrange(DATA* data, modelica_real* res)
{
<%varDecls1%>
<%preExp1%>
<%objectiveIntegrand%>
return -1;
}

/* constraints */
int pathConstraints(DATA* data, modelica_real* res, int* N)
{
if(*N < 0)
{
*N = <%listConstraintsLength%>;
return 1;
}
<%constraints%>
return 0;
}
/* constraints */
int pathConstraints(DATA* data, modelica_real* res, int* N)
{
if(*N < 0)
{
*N = <%listConstraintsLength%>;
return 1;
}
<%constraints%>
return 0;
}
>>
else error(sourceInfo(), 'Unknown Constraint List')
end optimizationComponents1;
Expand All @@ -9689,13 +9689,13 @@ template pathConstraint(Constraint cons)
daeExp(constraint, contextOptimization, &preExp /*BUFC*/, &varDecls /*BUFD*/)
;separator="\n")
<<
else
{
int i = 0;
<%varDecls%>
<%preExp%>
<%constrain%>
}
else
{
int i = 0;
<%varDecls%>
<%preExp%>
<%constrain%>
}
>>
else error(sourceInfo(), 'Unknown Constraint List')
end pathConstraint;
Expand Down

0 comments on commit 060316d

Please sign in to comment.