Skip to content

Commit

Permalink
- correctly set the return value from the execution of the generated …
Browse files Browse the repository at this point in the history
…executable

  sometimes the executable would return -1 instead of 0!

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@5450 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed May 5, 2010
1 parent 385a7f2 commit dd92b62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c_runtime/simulation_runtime.cpp
Expand Up @@ -252,7 +252,7 @@ int startNonInteractiveSimulation(int argc, char**argv){
if (measure_time_flag)
measure_start_time = clock();

callSolver(argc, argv, method, start, stop, stepSize, outputSteps, tolerance);
retVal = callSolver(argc, argv, method, start, stop, stepSize, outputSteps, tolerance);

if (measure_time_flag)
cout << "Time to calculate simulation: "<< (clock()-measure_start_time)/CLOCKS_PER_SEC <<" sec." << endl;
Expand Down

0 comments on commit dd92b62

Please sign in to comment.