Skip to content

Commit

Permalink
- use intMax for repl Size, as in fact wanted
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@14233 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Dec 4, 2012
1 parent 85e27ca commit 08b8f84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/BackEnd/BackendDAEOptimize.mo
Expand Up @@ -338,7 +338,7 @@ protected
Integer size;
algorithm
size := BackendDAEUtil.daeSize(dae);
size := intMin(BaseHashTable.defaultBucketSize,realInt(realMul(intReal(size),0.7)));
size := intMax(BaseHashTable.defaultBucketSize,realInt(realMul(intReal(size),0.7)));
repl := BackendVarTransform.emptyReplacementsSized(size);
(odae,(repl1,b)) := BackendDAEUtil.mapEqSystemAndFold(dae,removeSimpleEquationsFast1,(repl,false));
odae := removeSimpleEquationsShared(b,odae,repl1);
Expand Down

0 comments on commit 08b8f84

Please sign in to comment.