| 237 | |
| 238 | |
| 239 | fmi2Status 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 | |
| 258 | fmi2Status fmi2GetInteger( |
| 259 | fmi2Component c, |