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@24855 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed Mar 2, 2015
1 parent 1935b7a commit 7c3bb78
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Compiler/Template/CodegenCpp.tpl
Expand Up @@ -9230,7 +9230,7 @@ template equationWhen(SimEqSystem eq, Context context, Text &varDecls, SimCode s
'<%cref1(left,simCode , &extraFuncs , &extraFuncsDecl, extraFuncsNamespace, context, varDeclsCref, stateDerVectorName, useFlatArrayNotation)%> = _discrete_events->pre(<%cref1(left,simCode , &extraFuncs , &extraFuncsDecl, extraFuncsNamespace, context, varDeclsCref, stateDerVectorName, useFlatArrayNotation)%>);'
let assign = whenAssign(left, typeof(right), right, context, &varDecls, simCode, &extraFuncs, &extraFuncsDecl, extraFuncsNamespace, stateDerVectorName, useFlatArrayNotation)
let elseWhen = equationElseWhen(elseWhenEq, context, varDecls, simCode, &extraFuncs, &extraFuncsDecl, extraFuncsNamespace, stateDerVectorName, useFlatArrayNotation)

<<
if(_initial)
{
Expand All @@ -9243,7 +9243,7 @@ template equationWhen(SimEqSystem eq, Context context, Text &varDecls, SimCode s
<%elseWhen%>
else
{

<%cref1(left,simCode , &extraFuncs , &extraFuncsDecl, extraFuncsNamespace, context, varDeclsCref, stateDerVectorName, useFlatArrayNotation)%> = _discrete_events->pre(<%cref1(left,simCode , &extraFuncs , &extraFuncsDecl, extraFuncsNamespace, context, varDeclsCref, stateDerVectorName, useFlatArrayNotation)%>);
}
>>
Expand All @@ -9253,7 +9253,7 @@ end equationWhen;
template preCall(ComponentRef left, Type ty, Exp right, Context context, Text &varDecls, SimCode simCode, Text& extraFuncs, Text& extraFuncsDecl,
Text extraFuncsNamespace, Text stateDerVectorName /*=__zDot*/, Boolean useFlatArrayNotation)
"Generates assignment for when."
::=
::=
match ty
case T_ARRAY(dims=dims) then
let dimensions = checkDimension(dims)
Expand Down Expand Up @@ -9282,7 +9282,7 @@ end preCall;
template preCallForArray(Dimensions dims,String tmp)
::=
let operatorCall= dims |> dim hasindex i0 =>
let dimindex = dimension(dim,contextOther)
let dimindex = dimension(dim,contextOther)
'for(int i<%i0%>_<%tmp%>=1;i<%i0%>_<%tmp%><= <%dimindex%>;++i<%i0%>_<%tmp%>)'
;separator="\n\t"
<<
Expand All @@ -9296,9 +9296,9 @@ template whenAssign(ComponentRef left, Type ty, Exp right, Context context, Text
"Generates assignment for when."
::= /*
match ty

case T_ARRAY(__) then
let &preExp = buffer ""
let &preExp = buffer ""
let expPart = daeExp(right, context, &preExp, &varDecls, simCode, &extraFuncs, &extraFuncsDecl, extraFuncsNamespace, stateDerVectorName, useFlatArrayNotation)
match expTypeFromExpShort(right)
case "boolean" then
Expand Down

0 comments on commit 7c3bb78

Please sign in to comment.