Skip to content

Commit

Permalink
- fixed FMU start value behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus Walther authored and OpenModelica-Hudson committed Oct 27, 2015
1 parent 90cc19c commit 7c902c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SimulationRuntime/cpp/Include/FMU/FMUWrapper.h
Expand Up @@ -85,7 +85,7 @@ class FMUWrapper : public IFMUInterface
{
double *realVars = _model->getSimVars()->getRealVarsVector();
for(size_t i = 0; i < nvr; i++)
_model->setRealStartValue(realVars[vr[i]],true);
_model->setRealStartValue(realVars[vr[i]], value[i]);
}
else
_model->setReal(vr, nvr, value);
Expand All @@ -104,7 +104,7 @@ class FMUWrapper : public IFMUInterface
{
int *intVars = _model->getSimVars()->getIntVarsVector();
for(size_t i = 0; i < nvr; i++)
_model->setIntStartValue(intVars[vr[i]],true);
_model->setIntStartValue(intVars[vr[i]], value[i]);
}
else
_model->setInteger(vr, nvr, value);
Expand All @@ -121,7 +121,7 @@ class FMUWrapper : public IFMUInterface
{
bool *boolVars = _model->getSimVars()->getBoolVarsVector();
for(size_t i = 0; i < nvr; i++)
_model->setBoolStartValue(boolVars[vr[i]],true);
_model->setBoolStartValue(boolVars[vr[i]], value[i]);
}
else
{
Expand Down

0 comments on commit 7c902c1

Please sign in to comment.