MCPcopy Create free account
hub / github.com/NTNU-IHB/PythonFMU / fmi2Reset

Function fmi2Reset

src/pythonfmu/fmi2.cpp:223–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221
222
223fmi2Status fmi2Reset(fmi2Component c)
224{
225 const auto component = static_cast<Fmi2Component*>(c);
226 try {
227 component->slave->Reset();
228 return fmi2OK;
229 } catch (const pythonfmu::fatal_error& e) {
230 component->logger->log(fmi2Fatal, e.what());
231 return fmi2Fatal;
232 } catch (const std::exception& e) {
233 component->logger->log(fmi2Error, e.what());
234 return fmi2Error;
235 }
236}
237
238
239fmi2Status fmi2GetReal(

Callers

nothing calls this directly

Calls 2

ResetMethod · 0.80
logMethod · 0.45

Tested by

no test coverage detected