12 #ifndef MFEM_ELASTICITY_DIAGONAL_PC_HPP 13 #define MFEM_ELASTICITY_DIAGONAL_PC_HPP 15 #include "../operators/elasticity_gradient_operator.hpp" 31 static constexpr
int dim = 3;
45 int num_submats_, submat_height_;
46 Vector Ke_diag_, K_diag_local_, K_diag_;
void Mult(const Vector &x, Vector &y) const override
Operator application: y=A(x).
ElasticityGradientOperator is a wrapper class to pass ElasticityOperator::AssembleGradientDiagonal an...
ElasticityDiagonalPreconditioner acts as a matrix-free preconditioner for ElasticityOperator.
void SetOperator(const Operator &op) override
Set/update the solver for the given operator.
ElasticityDiagonalPreconditioner(Type type=Type::Diagonal)