Skip to content

Commit

Permalink
Change error message (#1130)
Browse files Browse the repository at this point in the history
  • Loading branch information
lochel committed Mar 2, 2022
1 parent c906bb0 commit 88a4e11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/OMSimulatorLib/ComponentFMUCS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1244,7 +1244,7 @@ oms_status_enu_t oms::ComponentFMUCS::getDirectionalDerivative(const ComRef& unk
return logError_ModelInWrongState(getModel().getCref());

if (!getFMUInfo()->getProvidesDirectionalDerivative())
return logError("It is not possible to compute directionalDerivative for signal \"" + std::string(getFullCref() + unknownCref) + "\" as providesDirectionalDerivative is false or not provieded in modelDescription.xml");
return logError("FMU \"" + std::string(getFullCref()) + "\" doesn't support directional derivatives (providesDirectionalDerivative = false in modelDescription.xml)");

int j = -1;
for (size_t i = 0; i < allVariables.size(); i++)
Expand Down
2 changes: 1 addition & 1 deletion src/OMSimulatorLib/ComponentFMUME.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,7 @@ oms_status_enu_t oms::ComponentFMUME::getDirectionalDerivative(const ComRef& unk
return logError_ModelInWrongState(getModel().getCref());

if (!getFMUInfo()->getProvidesDirectionalDerivative())
return logError("It is not possible to compute directionalDerivative for signal \"" + std::string(getFullCref() + unknownCref) + "\" as providesDirectionalDerivative is false or not provieded in modelDescription.xml");
return logError("FMU \"" + std::string(getFullCref()) + "\" doesn't support directional derivatives (providesDirectionalDerivative = false in modelDescription.xml)");

int j = -1;
for (size_t i = 0; i < allVariables.size(); i++)
Expand Down

0 comments on commit 88a4e11

Please sign in to comment.