Skip to content

Commit 060316d

Browse files
committed
- fix indention
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@16767 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent faa5d2b commit 060316d

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

Compiler/Template/CodegenC.tpl

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -9647,26 +9647,26 @@ template optimizationComponents1(ClassAttributes classAttribute, SimCode simCode
96479647
return -1;
96489648
}
96499649

9650-
/* objectiveIntegrand */
9651-
int lagrange(DATA* data, modelica_real* res)
9652-
{
9653-
<%varDecls1%>
9654-
<%preExp1%>
9655-
<%objectiveIntegrand%>
9656-
return -1;
9657-
}
9650+
/* objectiveIntegrand */
9651+
int lagrange(DATA* data, modelica_real* res)
9652+
{
9653+
<%varDecls1%>
9654+
<%preExp1%>
9655+
<%objectiveIntegrand%>
9656+
return -1;
9657+
}
96589658

9659-
/* constraints */
9660-
int pathConstraints(DATA* data, modelica_real* res, int* N)
9661-
{
9662-
if(*N < 0)
9663-
{
9664-
*N = <%listConstraintsLength%>;
9665-
return 1;
9666-
}
9667-
<%constraints%>
9668-
return 0;
9669-
}
9659+
/* constraints */
9660+
int pathConstraints(DATA* data, modelica_real* res, int* N)
9661+
{
9662+
if(*N < 0)
9663+
{
9664+
*N = <%listConstraintsLength%>;
9665+
return 1;
9666+
}
9667+
<%constraints%>
9668+
return 0;
9669+
}
96709670
>>
96719671
else error(sourceInfo(), 'Unknown Constraint List')
96729672
end optimizationComponents1;
@@ -9689,13 +9689,13 @@ template pathConstraint(Constraint cons)
96899689
daeExp(constraint, contextOptimization, &preExp /*BUFC*/, &varDecls /*BUFD*/)
96909690
;separator="\n")
96919691
<<
9692-
else
9693-
{
9694-
int i = 0;
9695-
<%varDecls%>
9696-
<%preExp%>
9697-
<%constrain%>
9698-
}
9692+
else
9693+
{
9694+
int i = 0;
9695+
<%varDecls%>
9696+
<%preExp%>
9697+
<%constrain%>
9698+
}
96999699
>>
97009700
else error(sourceInfo(), 'Unknown Constraint List')
97019701
end pathConstraint;

0 commit comments

Comments
 (0)