10 #ifdef MOOSE_MFEM_ENABLED 22 "parallel using the MUMPS library.");
23 params.
addParam<
int>(
"print_level", 2,
"Set the solver verbosity.");
37 solver->iterative_mode = getParam<bool>(
"use_initial_guess");
38 solver->SetPrintLevel(getParam<int>(
"print_level"));
46 mooseError(
"MUMPS solver does not support LOR solve");
Wrapper for mfem::MUMPSSolver.
void ConstructSolver() override
Override in derived classes to construct and set the solver options.
MFEMProblem & getMFEMProblem()
Return the owning MFEM problem.
registerMooseObject("MooseApp", MFEMMUMPS)
std::unique_ptr< mfem::Solver > _solver
Solver to be used for the problem.
static InputParameters validParams()
bool _lor
Variable defining whether to use LOR solver.
MPI_Comm getComm()
Return the MPI communicator associated with this FE problem's mesh.
MFEMMUMPS(const InputParameters ¶meters)
static InputParameters validParams()
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...
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...
void SetupLOR(mfem::ParBilinearForm &a, mfem::Array< int > &tdofs) override
Updates the solver with the bilinear form in case LOR solve is required.