Ticket #143: InteractiveBuildModel.patch

File InteractiveBuildModel.patch, 1.2 KB (added by cbelyaev, 17 years ago)

Fix

  • Compiler/Static.mo

     
    51235123          args, Exp.RCONST(1.0));
    51245124        (cache,numberOfIntervals) = getOptionalNamedArg(cache,env, SOME(st), impl, "numberOfIntervals",
    51255125          (Types.T_INTEGER({}),NONE), args, Exp.ICONST(500));
     5126        (cache,tolerance) = getOptionalNamedArg(cache,env, SOME(st), impl, "tolerance", (Types.T_REAL({}),NONE),
     5127          args, Exp.RCONST(1e-10));         
    51265128        (cache,method) = getOptionalNamedArg(cache,env, SOME(st), impl, "method", (Types.T_STRING({}),NONE),
    51275129          args, Exp.SCONST("dassl"));
    51285130        cname_str = Absyn.pathString(className);
     
    51335135      then
    51345136        (cache,Exp.CALL(Absyn.IDENT("buildModel"),
    51355137          {Exp.CODE(Absyn.C_TYPENAME(className),Exp.OTHER()),startTime,stopTime,
    5136           numberOfIntervals,method,filenameprefix,storeInTemp},false,true,Exp.OTHER()),Types.PROP(
     5138          numberOfIntervals,tolerance,method,filenameprefix,storeInTemp},false,true,Exp.OTHER()),Types.PROP(
    51375139          (
    51385140          Types.T_ARRAY(Types.DIM(SOME(2)),(Types.T_STRING({}),NONE)),NONE),Types.C_VAR()),SOME(st));
    51395141