Skip to content

Commit

Permalink
- fixed my previous commit
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@22442 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Marcus Walther committed Sep 26, 2014
1 parent 31f9503 commit ccd5f2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Compiler/Util/Flags.mo
Expand Up @@ -892,7 +892,7 @@ constant ConfigFlag PROFILING_LEVEL = CONFIG_FLAG(57, "profiling",
("blocks",Util.gettext("Generate code for profiling function calls as well as linear and non-linear systems of equations")),
("blocks+html",Util.gettext("Like blocks, but also run xsltproc and gnuplot to generate an html report")),
("all",Util.gettext("Generate code for profiling of all functions and equations")),
("all_papi",Util.gettext("Generate code for profiling of all functions and equations with additional performance data using the papi-interface (cpp-runtime)"))
("all_perf",Util.gettext("Generate code for profiling of all functions and equations with additional performance data using the papi-interface (cpp-runtime)"))
})),
Util.gettext("Sets the profiling level to use. Profiled equations and functions record execution time and count for each time step taken by the integrator."));

Expand Down
7 changes: 3 additions & 4 deletions SimulationRuntime/cpp/Include/Core/DataExchange/Writer.h
Expand Up @@ -50,7 +50,6 @@ class Writer
_threadWorkDone = true;
_writeThread.join()
#endif
std::cerr << "Destructor called" << std::endl;
}

virtual void write(Writer::value_type_v& v_list, Writer::value_type_dv& v2_list, double time) = 0;
Expand Down Expand Up @@ -107,9 +106,9 @@ class Writer
return;
}

value_type_v *v_list = container->get<0>();
value_type_dv *v2_list = container->get<1>();
double time = get < 2 > (*container);
value_type_v *v_list = get<0>(*container);
value_type_dv *v2_list = get<1>(*container);
double time = get<2>(*container);

write(*v_list, *v2_list, time);

Expand Down

0 comments on commit ccd5f2f

Please sign in to comment.