10#ifdef MOOSE_MFEM_ENABLED
21 params.
addClassDescription(
"MFEM matrix-free auxiliary-space Maxwell preconditioner for the "
22 "iterative solution of MFEM equation systems.");
23 params.
addParam<MFEMScalarCoefficientName>(
26 "Name of scalar coefficient used in curl-curl component of target equation system.");
27 params.
addParam<MFEMScalarCoefficientName>(
30 "Name of scalar coefficient used in mass component of target equation system.");
32 "inner_pi_iterations", 2,
"Number of CG iterations on auxiliary Pi space.");
34 "inner_g_iterations", 2,
"Number of CG iterations on auxiliary G space.");
42 :
Moose::MFEM::LORLinearSolverBase<
mfem::MatrixFreeAMS>(parameters),
43 _alpha_coef(getScalarCoefficient(
"alpha_coefficient")),
44 _beta_coef(getScalarCoefficient(
"beta_coefficient")),
45 _inner_pi_its(getParam<unsigned
int>(
"inner_pi_iterations")),
46 _inner_g_its(getParam<unsigned
int>(
"inner_g_iterations"))
60 _solver = std::make_unique<mfem::MatrixFreeAMS>(*
_a,
61 const_cast<mfem::Operator &
>(op),
registerMooseObject("MooseApp", MFEMMatrixFreeAMS)
void ErrorVector unsigned int
Wrapper for mfem::MatrixFreeAMS solver.
mfem::Coefficient & _beta_coef
virtual void SetOperatorImpl(const mfem::Operator &op) override
Updates the solver at the operator level.
MFEMMatrixFreeAMS(const InputParameters &)
void ConstructSolver() override
Override in derived classes to construct and set the solver options.
static InputParameters validParams()
mfem::Coefficient & _alpha_coef
mfem::Array< int > _ess_bdr_markers
virtual void UpdateEquationSystemContext() override
Update the solver following any changes to the weak form it is responsible for solving.
static InputParameters validParams()
mfem::ParBilinearForm * _a
std::unique_ptr< mfem::Solver > _solver
Solver to be used for the problem.
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...