Skip to content

Commit

Permalink
-changed simcall in CevalScript for cpp runtime
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12365 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
niklwors committed Jul 27, 2012
1 parent 382a3bb commit f7f18de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/Script/CevalScript.mo
Expand Up @@ -1341,11 +1341,11 @@ algorithm
ifcpp=Util.equal(Config.simCodeTarget(),"Cpp");
compileDir=Util.if_(ifcpp,Settings.getInstallationDirectoryPath() +& "/bin/" ,compileDir);
result_file = stringAppendList(List.consOnTrue(not Config.getRunningTestsuite(),compileDir,{executable,"_res.",outputFormat_str}));
simflags2=Util.if_(ifcpp,stringAppendList({compileDir," ","./"," ",result_file}),"");
simflags2=Util.if_(ifcpp,stringAppendList({compileDir," ","./"," ",result_file}), simflags);
executable1=Util.if_(ifcpp,"Simulation",executable);
executableSuffixedExe = stringAppend(executable1, System.getExeExt());
// sim_call = stringAppendList({"sh -c ",cit,"ulimit -t 60; ",cit,pwd,pd,executableSuffixedExe,cit," > output.log 2>&1",cit});
sim_call = stringAppendList({cit,compileDir,executableSuffixedExe,cit," ",simflags," ",simflags2," > output.log 2>&1"});
sim_call = stringAppendList({cit,compileDir,executableSuffixedExe,cit," ",simflags2," > output.log 2>&1"});
System.realtimeTick(RT_CLOCK_SIMULATE_SIMULATION);
SimulationResults.close() "Windows cannot handle reading and writing to the same file from different processes like any real OS :(";
0 = System.systemCall(sim_call);
Expand Down

0 comments on commit f7f18de

Please sign in to comment.