Changeset ad9aa799 in OpenModelica


Ignore:
Timestamp:
2016-04-08T08:18:29+02:00 (8 years ago)
Author:
Martin Sjölund <martin.sjolund@…>
Branches:
Added-citation-metadata, maintenance/v1.14, maintenance/v1.15, maintenance/v1.16, maintenance/v1.17, maintenance/v1.18, maintenance/v1.19, maintenance/v1.20, maintenance/v1.21, maintenance/v1.22, maintenance/v1.23, master, omlib-staging
Children:
dec85325
Parents:
98c1ed01
Message:

Get a better default size for SimCode hashset

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Compiler/SimCode/SimCodeUtil.mo

    r2c7da6d rad9aa799  
    63236323  BackendDAE.EqSystems systs1, systs2;
    63246324  DAE.FunctionTree funcTree;
    6325   array<HashSet.HashSet> hs = arrayCreate(1, HashSet.emptyHashSet());
     6325  array<HashSet.HashSet> hs = arrayCreate(1, HashSet.emptyHashSetSized(Util.nextPrime(BackendDAEUtil.daeSize(inSimDAE)+BackendDAEUtil.daeSize(inInitDAE))));
    63266326  array<list<SimCodeVar.SimVar>> simVars = arrayCreate(size(SimVarsIndex,1), {});
    63276327algorithm
Note: See TracChangeset for help on using the changeset viewer.