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

Function fmi2SetReal

src/pythonfmu/fmi2.cpp:316–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314
315
316fmi2Status fmi2SetReal(
317 fmi2Component c,
318 const fmi2ValueReference vr[],
319 size_t nvr,
320 const fmi2Real value[])
321{
322 const auto component = static_cast<Fmi2Component*>(c);
323 try {
324 component->slave->SetReal(vr, nvr, value);
325 return fmi2OK;
326 } catch (const pythonfmu::fatal_error& e) {
327 component->logger->log(fmi2Fatal, e.what());
328 return fmi2Fatal;
329 } catch (const std::exception& e) {
330 component->logger->log(fmi2Error, e.what());
331 return fmi2Error;
332 }
333}
334
335fmi2Status fmi2SetInteger(
336 fmi2Component c,

Callers

nothing calls this directly

Calls 2

SetRealMethod · 0.80
logMethod · 0.45

Tested by

no test coverage detected