10#ifdef MOOSE_MFEM_ENABLED
34 virtual void SetOperator(
const mfem::Operator & op)
override;
37 virtual void Solve() {
mooseError(
"'solve' method not used in this solver type."); }
53 friend class ::MFEMProblemSolve;
const InputParameters & parameters() const
Get the parameters of the object.
void paramError(const std::string ¶m, Args... args) const
Emits an error prefixed with the file and line number of the given param (from the input file) along ...
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type and optionally a file path to the top-level block p...
Base class for linear MFEM solvers and preconditioners.
std::shared_ptr< EquationSystem > _equation_system
Pointer to EquationSystem used for problem-specific solver setup.
LinearSolverBase * GetPreconditioner()
Returns this solver's preconditioner.
virtual void SetPreconditionerImpl()
Override in solvers that accept a preconditioner.
virtual void Solve()
For eigensolvers, this method calls the underlying Solve method.
std::shared_ptr< LinearSolverBase > _preconditioner
Preconditioner to be used for the problem.
static InputParameters validParams()
void SetPreconditioner(const mfem::Operator &op)
Retrieves the preconditioner, sets the operator on it, and sets it on the wrapped solver.
virtual void SetOperator(const mfem::Operator &op) override
Updates the solver and any associated weak form context at the operator level.
Base class for wrapping mfem::Solver-derived classes.
Utilities for converting between vector(s) of libMesh Points and MFEM Vector(s).