Skip to content

Commit

Permalink
Get a better default size for SimCode hashset
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund committed Apr 8, 2016
1 parent 98c1ed0 commit ad9aa79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/SimCode/SimCodeUtil.mo
Expand Up @@ -6322,7 +6322,7 @@ protected
BackendDAE.Variables aliasVars1, aliasVars2;
BackendDAE.EqSystems systs1, systs2;
DAE.FunctionTree funcTree;
array<HashSet.HashSet> hs = arrayCreate(1, HashSet.emptyHashSet());
array<HashSet.HashSet> hs = arrayCreate(1, HashSet.emptyHashSetSized(Util.nextPrime(BackendDAEUtil.daeSize(inSimDAE)+BackendDAEUtil.daeSize(inInitDAE))));
array<list<SimCodeVar.SimVar>> simVars = arrayCreate(size(SimVarsIndex,1), {});
algorithm
BackendDAE.DAE(eqs=systs1, shared=BackendDAE.SHARED(knownVars=knvars1, externalObjects=extvars1, aliasVars=aliasVars1, functionTree=funcTree)) := inSimDAE;
Expand Down

0 comments on commit ad9aa79

Please sign in to comment.