15 "Non-default constructor to be removed after Cantera 3.2.");
42 m_mat(row, col) = value;
50 for (
size_t n = 0; n <
m_dim; n++) {
59 "Jacobian evaluation moved to OneDim::evalJacobian().");
61 throw CanteraError(
"MultiJac::eval",
"Can only be used in combination with "
62 "(deprecated) constructor that takes a OneDim object.");
size_t nSubDiagonals() const
Number of subdiagonals.
void resize(size_t n, size_t kl, size_t ku, double v=0.0)
Resize the matrix problem.
void bfill(double v=0.0)
Fill or zero the matrix.
size_t nSuperDiagonals() const
Number of superdiagonals.
double & value(size_t i, size_t j)
Return a changeable reference to element (i,j).
Base class for exceptions thrown by Cantera classes.
BandMatrix m_mat
Underlying matrix storage.
void setBandwidth(size_t bw) override
Used to provide system bandwidth for implementations that use banded matrix storage.
void setValue(size_t row, size_t col, double value) override
Set a value at the specified row and column of the jacobian triplet vector.
void factorize() override
Factorize the system matrix.
vector< int > m_mask
Transient mask for transient terms, 1 if transient, 0 if steady-state.
void eval(double *x0, double *resid0, double rdt)
Evaluates the Jacobian at x0 using finite differences.
vector< double > m_ssdiag
Diagonal of the steady-state Jacobian.
OneDim * m_resid
Residual evaluator for this Jacobian.
void reset() override
Reset parameters as needed.
void updateTransient(double rdt, integer *mask) override
Update the diagonal terms in the Jacobian by using the transient mask .
void initialize(size_t nVars) override
Called during setup for any processes that need to be completed prior to setup functions used in sund...
Container class for multiple-domain 1D problems.
size_t bandwidth() const
Jacobian bandwidth.
void evalJacobian(double *x0)
Evaluates the Jacobian at x0 using finite differences.
size_t m_dim
Dimension of the system.
int m_age
Age of the Jacobian (times incrementAge() has been called)
Namespace for the Cantera kernel.
void warn_deprecated(const string &source, const AnyBase &node, const string &message)
A deprecation warning for syntax in an input file.