Skip to content

Commit

Permalink
[Janitor mode] Fix whitespace
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@23658 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed Dec 4, 2014
1 parent 0dfde5b commit c2ad1b1
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions Compiler/Template/CodegenCpp.tpl
Expand Up @@ -578,7 +578,7 @@ case modelInfo as MODELINFO(vars=SIMVARS(__)) then
let init8 = initAliasValst(varDecls8,"Int",vars.intAliasVars, simCode,contextOther,useFlatArrayNotation)
let init9 = initValst(varDecls9,"Bool",vars.boolAliasVars, simCode,contextOther,useFlatArrayNotation)
<<

<%init7%>
void <%lastIdentOfPath(modelInfo.name)%>Initialize::initializeIntAliasVars()
{
Expand Down Expand Up @@ -611,7 +611,7 @@ case modelInfo as MODELINFO(vars=SIMVARS(__)) then
let init5 = initValstWithSplit(varDecls5,"Int",'<%lastIdentOfPath(modelInfo.name)%>Initialize::initializeIntAlgVars',vars.intAlgVars, simCode,contextOther,useFlatArrayNotation)
let init6 = initValst(varDecls6,"Bool",vars.boolAlgVars, simCode,contextOther,useFlatArrayNotation)
<<

<%init3%>

void <%lastIdentOfPath(modelInfo.name)%>Initialize::initializeDiscreteAlgVars()
Expand Down Expand Up @@ -804,7 +804,7 @@ case modelInfo as MODELINFO(vars=SIMVARS(__)) then
'"<%Util.escapeModelicaStringToCString(comment)%>"' ;separator=",";align=10;alignSeparator=";\n description += " )%>;' %>
}


>>
end simulationWriteOutputAlgVarsCppFile;

Expand Down Expand Up @@ -862,7 +862,7 @@ case modelInfo as MODELINFO(vars=SIMVARS(__)) then
'names += <%(vars.boolParamVars |> SIMVAR(isProtected=false) =>
'"<%Util.escapeModelicaStringToCString(comment)%>"' ;separator=",";align=10;alignSeparator=";\n names += " )%>;' %>
}

>>
end simulationWriteOutputParameterCppFile;

Expand Down Expand Up @@ -895,7 +895,7 @@ case modelInfo as MODELINFO(vars=SIMVARS(__)) then
'"<%crefStrForWriteOutput(name)%>"' ;separator=",";align=10;alignSeparator=";\n names += " )%>;' %>
}





Expand All @@ -920,7 +920,7 @@ case modelInfo as MODELINFO(vars=SIMVARS(__)) then
'"<%Util.escapeModelicaStringToCString(comment)%>"';separator=",";align=10;alignSeparator=";\n description += " )%>;' %>
}


>>
end simulationWriteOutputAliasVarsCppFile;

Expand Down Expand Up @@ -4214,16 +4214,16 @@ case modelInfo as MODELINFO(vars=SIMVARS(__)) then
//let () = System.tmpTickReset(0)
let &varDecls1 = buffer "" /*BUFD*/
let &varDecls2 = buffer "" /*BUFD*/





let init1 = initValst(varDecls1,"Real",vars.stateVars, simCode,contextOther,useFlatArrayNotation)
let init2 = initValst(varDecls2,"Real",vars.derivativeVars, simCode,contextOther,useFlatArrayNotation)



<<
void <%lastIdentOfPath(modelInfo.name)%>Initialize::initializeStateVars()
{
Expand All @@ -4236,7 +4236,7 @@ case modelInfo as MODELINFO(vars=SIMVARS(__)) then
<%init2%>
}


>>
end init2;

Expand Down Expand Up @@ -6629,9 +6629,9 @@ template writeoutput1(ModelInfo modelInfo)
match modelInfo
case modelInfo as MODELINFO(vars=SIMVARS(__)) then
<<





void <%lastIdentOfPath(modelInfo.name)%>WriteOutput::writeStateVarsResultNames(vector<string>& names)
{
<% if vars.stateVars then
Expand All @@ -6647,8 +6647,8 @@ case modelInfo as MODELINFO(vars=SIMVARS(__)) then
}




void <%lastIdentOfPath(modelInfo.name)%>WriteOutput::writeStateVarsResultDescription(vector<string>& description)
{
<% if vars.stateVars then
Expand All @@ -6663,7 +6663,7 @@ case modelInfo as MODELINFO(vars=SIMVARS(__)) then
'"<%Util.escapeModelicaStringToCString(comment)%>"' ;separator=",";align=10;alignSeparator=";\n description += " )%>;' %>
}


>>
end writeoutput1;

Expand Down

0 comments on commit c2ad1b1

Please sign in to comment.