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@23230 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed Nov 6, 2014
1 parent 8630439 commit 43dbce1
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions Compiler/Template/CodegenCpp.tpl
Expand Up @@ -3726,22 +3726,22 @@ case SIMCODE(modelInfo = MODELINFO(__)) then
<%varDecls%>
<%initextvars%>
initializeParameterVars();
initializeIntParameterVars();
initializeBoolParameterVars();
initializeAlgVars();
initializeDiscreteAlgVars();
initializeIntAlgVars();
initializeBoolAlgVars();
initializeAliasVars();
initializeIntAliasVars();
initializeBoolAliasVars();
initializeStateVars();
initializeDerVars();
<%initFunctions%>
Expand Down Expand Up @@ -4383,7 +4383,7 @@ case SES_LINEAR(__) then
if(_useSparseFormat)
__Asparse = new sparse_inserter;
else
__A = boost::shared_ptr<AMATRIX>( new AMATRIX());
__A = boost::shared_ptr<AMATRIX>( new AMATRIX());
>>
end alocateLinearSystem;

Expand Down Expand Up @@ -4811,14 +4811,14 @@ case SIMCODE(modelInfo = MODELINFO(__)) then
class <%modelname%>Algloop<%index%>: public IAlgLoop, public AlgLoopDefaultImplementation
{
public:
//typedef for A- Matrix
//typedef for A- Matrix
<%match eq case SES_LINEAR(__) then
let size = listLength(vars)
<<
typedef StatArrayDim2<double,<%size%>,<%size%>,true> AMATRIX;
>>
%>
<%modelname%>Algloop<%index%>( <%systemname%>* system
,double* z,double* zDot, bool* conditions
,EventHandling& event_handling
Expand Down Expand Up @@ -4851,7 +4851,7 @@ case SIMCODE(modelInfo = MODELINFO(__)) then
<%match eq case SES_LINEAR(__) then
let size = listLength(vars)
<<
boost::shared_ptr<AMATRIX> __A; //dense
//b vector
StatArrayDim1<double,<%size%> > __b;
Expand Down Expand Up @@ -7083,10 +7083,10 @@ template initAliasValst(Text &varDecls ,Text type,list<SimVar> varsLst, SimCode
varsLst |> sv as SIMVAR(__) =>
/*
let &varDeclsCref = buffer ""

match initialValue
case SOME(v) then
let &preExp = buffer ""
let &preExp = buffer ""
match daeExp(v, contextOther, &preExp, &varDecls,simCode, useFlatArrayNotation)
case vStr as "0"
case vStr as "0.0"
Expand All @@ -7105,7 +7105,7 @@ template initAliasValst(Text &varDecls ,Text type,list<SimVar> varsLst, SimCode
end match
else
*/
let &preExp = buffer ""
let &preExp = buffer ""
let initval = getAliasInitVal(sv.aliasvar, contextOther, &preExp, &varDecls,simCode,useFlatArrayNotation)
'<%preExp%>
set<%type%>StartValue(<%getAliasVarName(sv.aliasvar, simCode,context,useFlatArrayNotation)%>,<%initval%>,"<%cref(sv.name, useFlatArrayNotation)%>");'
Expand Down

0 comments on commit 43dbce1

Please sign in to comment.