Skip to content

Commit

Permalink
increase size of base array to avoid expensive re-sizing
Browse files Browse the repository at this point in the history
  • Loading branch information
hkiel authored and OpenModelica-Hudson committed Jul 12, 2017
1 parent 7029f3a commit ca1c6de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/BackEnd/Initialization.mo
Expand Up @@ -138,7 +138,7 @@ algorithm
+ BackendVariable.varsSize(dae.shared.globalKnownVars)
+ BackendVariable.varsSize(dae.shared.localKnownVars)
+ BackendEquation.getNumberOfEquations(dae.shared.initialEqs)
+ BackendDAEUtil.daeSize(dae));
+ 2*BackendDAEUtil.daeSize(dae));
reeqns := BackendEquation.emptyEqnsSized(BackendEquation.getNumberOfEquations(dae.shared.removedEqs));

((vars, fixvars, eqns, _)) := BackendVariable.traverseBackendDAEVars(dae.shared.aliasVars, introducePreVarsForAliasVariables, (vars, fixvars, eqns, hs));
Expand Down

0 comments on commit ca1c6de

Please sign in to comment.