MCPcopy Create free account
hub / github.com/Cantera/cantera / updatePreconditioner

Method updatePreconditioner

src/zeroD/ReactorNet.cpp:721–730  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

719}
720
721void 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
732void ReactorNet::checkPreconditionerSupported() const {
733 // check for non-mole-based reactors and throw an error otherwise

Callers 2

TESTFunction · 0.45
preconditionerSetupMethod · 0.45

Calls 3

CanteraErrorClass · 0.85
preconditionerMethod · 0.80
setGammaMethod · 0.80

Tested by 1

TESTFunction · 0.36