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

Function fmi2GetReal

src/pythonfmu/fmi2.cpp:239–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237
238
239fmi2Status fmi2GetReal(
240 fmi2Component c,
241 const fmi2ValueReference vr[],
242 size_t nvr,
243 fmi2Real value[])
244{
245 const auto component = static_cast<Fmi2Component*>(c);
246 try {
247 component->slave->GetReal(vr, nvr, value);
248 return fmi2OK;
249 } catch (const pythonfmu::fatal_error& e) {
250 component->logger->log(fmi2Fatal, e.what());
251 return fmi2Fatal;
252 } catch (const std::exception& e) {
253 component->logger->log(fmi2Error, e.what());
254 return fmi2Error;
255 }
256}
257
258fmi2Status fmi2GetInteger(
259 fmi2Component c,

Callers

nothing calls this directly

Calls 2

GetRealMethod · 0.80
logMethod · 0.45

Tested by

no test coverage detected