13 :
BandMatrix(r.size(),r.bandwidth(),r.bandwidth())
23 for (
size_t n = 0; n <
m_n; n++) {
30 warn_deprecated(
"MultiJac::incrementDiagonal",
"To be removed after Cantera 3.1.");
44 for (
size_t n = 0; n < nv; n++) {
46 double xsave = x0[ipt];
61 for (
size_t i = j - 1; i != j+2; i++) {
62 if (i !=
npos && i < m_resid->points()) {
65 for (
size_t m = 0; m < mv; m++) {
66 value(m+iloc,ipt) = (
m_r1[m+iloc] - resid0[m+iloc])*rdx;
75 for (
size_t n = 0; n <
m_n; n++) {
79 m_elapsed += double(clock() - t0)/CLOCKS_PER_SEC;
A class for banded matrices, involving matrix inversion processes.
void bfill(double v=0.0)
Fill or zero the matrix.
size_t m_n
Number of rows and columns of the matrix.
double & value(size_t i, size_t j)
Return a changeable reference to element (i,j).
double m_rtol
Relative tolerance for perturbing solution components.
double m_elapsed
Elapsed CPU time taken to compute the Jacobian.
void incrementDiagonal(int j, double d)
vector< int > m_mask
Transient mask for transient terms, 1 if transient, 0 if steady-state.
MultiJac(OneDim &r)
Constructor.
void eval(double *x0, double *resid0, double rdt)
Evaluates the Jacobian at x0 using finite differences.
void updateTransient(double rdt, integer *mask)
Update the transient terms in the Jacobian by using the transient mask.
vector< double > m_ssdiag
Diagonal of the steady-state Jacobian.
int m_nevals
Number of Jacobian evaluations.
int m_age
Age of the Jacobian (times incrementAge() has been called)
OneDim * m_resid
Residual evaluator for this Jacobian.
vector< double > m_r1
Perturbed residual vector.
double m_atol
Absolute tolerance for perturbing solution components.
Container class for multiple-domain 1D problems.
size_t loc(size_t jg)
Location in the solution vector of the first component of global point jg.
void eval(size_t j, double *x, double *r, double rdt=-1.0, int count=1)
Evaluate the multi-domain residual function.
size_t nVars(size_t jg)
Number of solution components at global point jg.
size_t points()
Total number of points.
Namespace for the Cantera kernel.
const size_t npos
index returned by functions to indicate "no position"
void warn_deprecated(const string &source, const AnyBase &node, const string &message)
A deprecation warning for syntax in an input file.