10 #ifdef MOOSE_MFEM_ENABLED 21 params.
addClassDescription(
"MFEM solver for performing Jacobi smoothing of the equation system.");
27 :
Moose::MFEM::LinearSolverBase(parameters)
35 _solver = std::make_unique<mfem::OperatorJacobiSmoother>();
36 _solver->iterative_mode = getParam<bool>(
"use_initial_guess");
45 mfem::Array<int> ess_tdofs;
46 a.ParFESpace()->GetEssentialTrueDofs(ess_bdr_markers, ess_tdofs);
47 _solver.reset(
new mfem::LORSolver<mfem::OperatorJacobiSmoother>(a, ess_tdofs));
Wrapper for mfem::OperatorJacobiSmoother 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.
void SetupLOR(mfem::ParBilinearForm &a, mfem::Array< int > &ess_bdr_markers) override
Updates the solver with the bilinear form in case LOR solve is required.
static InputParameters validParams()
bool _lor
Variable defining whether to use LOR solver.
static InputParameters validParams()
registerMooseObject("MooseApp", MFEMOperatorJacobiSmoother)
MFEMOperatorJacobiSmoother(const InputParameters ¶meters)
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.