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

Method resize

src/numerics/SteadyStateSystem.cpp:235–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235void SteadyStateSystem::resize()
236{
237 m_state->resize(size());
238 m_xnew.resize(size());
239 m_newt->resize(size());
240 m_mask.resize(size());
241 if (!m_jac) {
242 throw CanteraError("SteadyStateSystem::resize",
243 "Jacobian evaluator must be instantiated before calling resize()");
244 }
245 m_jac->initialize(size());
246 m_jac->setBandwidth(bandwidth());
247 m_jac->clearStats();
248 m_jac_ok = false;
249}
250
251void SteadyStateSystem::setLinearSolver(shared_ptr<SystemJacobian> solver)
252{

Callers 1

setTimeStepMethod · 0.45

Calls 4

CanteraErrorClass · 0.85
initializeMethod · 0.45
setBandwidthMethod · 0.45
clearStatsMethod · 0.45

Tested by

no test coverage detected