| 568 | } |
| 569 | |
| 570 | void Reactor::resetSensitivity(double* params) |
| 571 | { |
| 572 | if (!params) { |
| 573 | return; |
| 574 | } |
| 575 | for (auto& p : m_sensParams) { |
| 576 | if (p.type == SensParameterType::reaction) { |
| 577 | m_kin->setMultiplier(p.local, p.value); |
| 578 | } else if (p.type == SensParameterType::enthalpy) { |
| 579 | m_thermo->resetHf298(p.local); |
| 580 | } |
| 581 | } |
| 582 | for (auto& S : m_surfaces) { |
| 583 | S->resetSensitivityParameters(); |
| 584 | } |
| 585 | m_thermo->invalidateCache(); |
| 586 | if (m_kin) { |
| 587 | m_kin->invalidateCache(); |
| 588 | } |
| 589 | } |
| 590 | |
| 591 | void Reactor::setAdvanceLimits(const double *limits) |
| 592 | { |
no test coverage detected