Skip to content

Commit

Permalink
improved the simulation command to output to output.log
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1851 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
x02lucpo committed Jul 13, 2005
1 parent 9ce2383 commit f7343d9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Compiler/Ceval.rml
Expand Up @@ -1124,10 +1124,11 @@ end
*)
System.path_delimiter => pd &
System.read_env("OPENMODELICAHOME") => omhome &
Util.string_append_list([omhome, pd, "Compiler", pd, "scripts", pd, "Compile ", makefilename]) => s_call &
Util.string_append_list([omhome, pd, "Compiler", pd, "scripts", pd, "Compile ", makefilename," > output.log 2>&1"]) => s_call &
(*> output.log 2>&1 = redirect stderr to stdout and put it in output.log *)

System.system_call(s_call) => 0 &
Util.string_append_list([".", pd, cname_str, " -m ",method_str]) => sim_call &
Util.string_append_list([".", pd, cname_str, " -m ",method_str," >> output.log 2>&1"]) => sim_call &
System.system_call(sim_call) => _ &
Util.string_append_list([cname_str,"_res.plt"]) => result_file &
let simValue = Values.RECORD(Absyn.IDENT("SimulationResult"),[Values.STRING(result_file)],["resultFile"]) &
Expand Down
2 changes: 1 addition & 1 deletion Compiler/rml2sig/rml2sig.bat
Expand Up @@ -21,6 +21,6 @@ goto end
:nodiff
echo No difference
del /Q %~n1.tmp

:end

2 changes: 1 addition & 1 deletion c_runtime/simulation_runtime.cpp
Expand Up @@ -19,7 +19,7 @@
*/

#include <iostream>
//#include <iostream>
#include <string>
#include <limits>
#include "simulation_runtime.h"
Expand Down

0 comments on commit f7343d9

Please sign in to comment.