| 719 | } |
| 720 | |
| 721 | void ReactorNet::updatePreconditioner(double gamma) |
| 722 | { |
| 723 | if (!m_integ) { |
| 724 | throw CanteraError("ReactorNet::updatePreconditioner", |
| 725 | "Must only be called after ReactorNet is initialized."); |
| 726 | } |
| 727 | auto precon = m_integ->preconditioner(); |
| 728 | precon->setGamma(gamma); |
| 729 | precon->updatePreconditioner(); |
| 730 | } |
| 731 | |
| 732 | void ReactorNet::checkPreconditionerSupported() const { |
| 733 | // check for non-mole-based reactors and throw an error otherwise |