Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
buildModel failed to work since we added the tolerance as a parameter to the simulation.
Credits go to Constantin Belyaev cbelyaev/AT/gmail for providing the patch. Thanks!

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@3061 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Jan 16, 2008
1 parent 6ffaebe commit e4421f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Compiler/Static.mo
Expand Up @@ -5123,6 +5123,8 @@ algorithm
args, Exp.RCONST(1.0));
(cache,numberOfIntervals) = getOptionalNamedArg(cache,env, SOME(st), impl, "numberOfIntervals",
(Types.T_INTEGER({}),NONE), args, Exp.ICONST(500));
(cache,tolerance) = getOptionalNamedArg(cache,env, SOME(st), impl, "tolerance", (Types.T_REAL({}),NONE),
args, Exp.RCONST(1e-10));
(cache,method) = getOptionalNamedArg(cache,env, SOME(st), impl, "method", (Types.T_STRING({}),NONE),
args, Exp.SCONST("dassl"));
cname_str = Absyn.pathString(className);
Expand All @@ -5133,7 +5135,7 @@ algorithm
then
(cache,Exp.CALL(Absyn.IDENT("buildModel"),
{Exp.CODE(Absyn.C_TYPENAME(className),Exp.OTHER()),startTime,stopTime,
numberOfIntervals,method,filenameprefix,storeInTemp},false,true,Exp.OTHER()),Types.PROP(
numberOfIntervals,tolerance,method,filenameprefix,storeInTemp},false,true,Exp.OTHER()),Types.PROP(
(
Types.T_ARRAY(Types.DIM(SOME(2)),(Types.T_STRING({}),NONE)),NONE),Types.C_VAR()),SOME(st));

Expand Down

0 comments on commit e4421f3

Please sign in to comment.