30 template<
class Type,
class DType,
class LUType>
33 const word& fieldName,
49 template<
class Type,
class DType,
class LUType>
57 template<
class Type,
class DType,
class LUType>
64 psi = this->matrix_.source()/this->matrix_.diag();
void read(const dictionary &solverDict)
Read and reset the solver parameters from the given dictionary.
DiagonalSolver(const word &fieldName, const LduMatrix< Type, DType, LUType > &matrix, const dictionary &solverDict)
Construct from matrix.
virtual SolverPerformance< Type > solve(Field< Type > &psi) const
Solve the matrix with this solver.
Pre-declare SubField and related Field type.
LduMatrix is a general matrix class in which the coefficients are stored as three arrays,...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Abstract base class for run-time selectable region solvers.
A class for handling words, derived from string.
const volScalarField & psi