10 #ifdef MOOSE_MFEM_ENABLED 21 params.
addClassDescription(
"Hypre auxiliary-space Maxwell solver and preconditioner for the " 22 "iterative solution of MFEM equation systems.");
23 params.
addParam<MFEMFESpaceName>(
"fespace",
"H(curl) FESpace to use in HypreAMS setup.");
26 "Declare that the system is singular; use when solving curl-curl problem " 27 "if mass term is zero");
28 params.
addParam<
int>(
"print_level", 2,
"Set the solver verbosity.");
34 :
Moose::MFEM::LORLinearSolverBase<
mfem::HypreAMS>(parameters),
35 _mfem_fespace(getMFEMProblem().getMFEMObject<
MFEMFESpace>(
"MFEMFESpace",
36 getParam<MFEMFESpaceName>(
"fespace")))
52 if (getParam<bool>(
"singular"))
53 solver.SetSingularProblem();
54 solver.iterative_mode = getParam<bool>(
"use_initial_guess");
55 solver.SetPrintLevel(getParam<int>(
"print_level"));
Wrapper for mfem::HypreAMS solver.
registerMooseObject("MooseApp", MFEMHypreAMS)
const MFEMFESpace & _mfem_fespace
std::unique_ptr< mfem::Solver > _solver
Solver to be used for the problem.
static InputParameters validParams()
void ConstructSolver() override
Override in derived classes to construct and set the solver options.
virtual void SetSolverParameters(mfem::HypreAMS &solver) override
Update the wrapped MFEM solver parameters.
static InputParameters validParams()
Constructs and stores an mfem::ParFiniteElementSpace object.
MFEMHypreAMS(const InputParameters &)
std::shared_ptr< mfem::ParFiniteElementSpace > getFESpace() const
Returns a shared pointer to the constructed fespace.
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...