Skip to content

Commit

Permalink
let linearize also run in numerical mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Willi Braun committed Oct 24, 2016
1 parent 3775ade commit f992d19
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Compiler/Script/CevalScriptBackend.mo
Expand Up @@ -1418,8 +1418,6 @@ algorithm

System.realtimeTick(ClockIndexes.RT_CLOCK_SIMULATE_TOTAL);

b = Flags.getConfigBool(Flags.GENERATE_SYMBOLIC_LINEARIZATION);
Flags.setConfigBool(Flags.GENERATE_SYMBOLIC_LINEARIZATION, true);
(cache,st,compileDir,executable,_,outputFormat_str,_,simflags,resultValues) = buildModel(cache,env,vals,st_1,msg);
Values.REAL(linearizeTime) = getListNthShowError(vals,"try to get stop time",0,2);
executableSuffixedExe = stringAppend(executable, System.getExeExt());
Expand Down Expand Up @@ -1451,8 +1449,6 @@ algorithm
simValue = createSimulationResultFailure(res, simOptionsAsString(vals));
newst = st;
end if;
//reset config flag
Flags.setConfigBool(Flags.GENERATE_SYMBOLIC_LINEARIZATION, b);
then
(cache,simValue,newst);

Expand Down

0 comments on commit f992d19

Please sign in to comment.