| 221 | |
| 222 | |
| 223 | fmi2Status 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 | |
| 239 | fmi2Status fmi2GetReal( |