10 #ifdef MOOSE_MFEM_ENABLED 21 params.
addClassDescription(
"Hypre auxiliary-space divergence solver and preconditioner for the " 22 "iterative solution of MFEM equation systems.");
23 params.
addParam<MFEMFESpaceName>(
"fespace",
"H(div) FESpace to use in HypreADS setup.");
24 params.
addParam<
int>(
"print_level", 2,
"Set the solver verbosity.");
30 :
Moose::MFEM::LinearSolverBase(parameters),
31 _mfem_fespace(getMFEMProblem().getMFEMObject<
MFEMFESpace>(
"MFEMFESpace",
32 getParam<MFEMFESpaceName>(
"fespace")))
41 solver->iterative_mode = getParam<bool>(
"use_initial_guess");
42 solver->SetPrintLevel(getParam<int>(
"print_level"));
54 mfem::Geometry::Type::CUBE)
55 mooseError(
"LOR HypreADS Solver only supports hex meshes.");
57 auto lor_solver =
new mfem::LORSolver<mfem::HypreADS>(a, tdofs);
58 lor_solver->GetSolver().SetPrintLevel(getParam<int>(
"print_level"));
Wrapper for mfem::HypreADS solver.
std::unique_ptr< mfem::Solver > _solver
Solver to be used for the problem.
void ConstructSolver() override
Override in derived classes to construct and set the solver options.
static InputParameters validParams()
static InputParameters validParams()
bool _lor
Variable defining whether to use LOR solver.
MFEMHypreADS(const InputParameters &)
Constructs and stores an mfem::ParFiniteElementSpace object.
void SetupLOR(mfem::ParBilinearForm &a, mfem::Array< int > &tdofs) override
Updates the solver with the bilinear form in case LOR solve is required.
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...
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...
virtual void CheckSpectralEquivalence(mfem::ParBilinearForm &blf) const
Checks for the correct configuration of quadrature bases for LOR spectral equivalence.
registerMooseObject("MooseApp", MFEMHypreADS)
const MFEMFESpace & _mfem_fespace