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

Method reinitialize

src/numerics/CVodesIntegrator.cpp:335–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333}
334
335void CVodesIntegrator::reinitialize(double t0, FuncEval& func)
336{
337 m_t0 = t0;
338 m_time = t0;
339 m_tInteg = t0;
340 func.getState(NV_DATA_S(m_y));
341 m_func = &func;
342 func.clearErrors();
343 // reinitialize preconditioner if applied
344 if (m_prec_side != PreconditionerSide::NO_PRECONDITION) {
345 m_preconditioner->initialize(m_neq);
346 }
347 int result = CVodeReInit(m_cvode_mem, m_t0, m_y);
348 checkError(result, "reinitialize", "CVodeReInit");
349 applyOptions();
350}
351
352void CVodesIntegrator::applyOptions()
353{

Callers

nothing calls this directly

Calls 3

clearErrorsMethod · 0.80
getStateMethod · 0.45
initializeMethod · 0.45

Tested by

no test coverage detected