Skip to content

Commit

Permalink
move Logger call from generated code to FMUWrapper
Browse files Browse the repository at this point in the history
This should not change the behavior for FMI 1.0.
FMI 2.0 uses the logging mechanism of the FMI spec.
  • Loading branch information
rfranke committed Oct 20, 2015
1 parent 5ad900c commit d462a69
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion Compiler/Template/CodegenFMUCpp.tpl
Expand Up @@ -277,7 +277,6 @@ case SIMCODE(modelInfo=MODELINFO(__)) then

// initialization
void <%modelShortName%>FMU::initialize() {
Logger::write("Initializing memory and variables",LC_MOD,LL_DEBUG);
<%modelShortName%>WriteOutput::initialize();
<%modelShortName%>Initialize::initializeMemory();
<%modelShortName%>Initialize::initializeFreeVariables();
Expand Down
1 change: 1 addition & 0 deletions SimulationRuntime/cpp/Include/FMU/FMUWrapper.h
Expand Up @@ -131,6 +131,7 @@ class FMUWrapper : public IFMUInterface
{
//LOGGER_WRITE("Initialize",LC_OTHER,LL_DEBUG);
// TODO: here is some code duplication to SimulationRuntime/cpp/Core/Solver/Initailization.cpp
Logger::write("Initializing memory and variables",LC_MOD,LL_DEBUG);
_model->initialize();
_model->initializeBoundVariables();
_model->setInitial(true);
Expand Down

0 comments on commit d462a69

Please sign in to comment.