10#ifdef MOOSE_MFEM_ENABLED
33 virtual void GetEigenvalues(mfem::Array<mfem::real_t> & eigenvalues)
const override
39 virtual const mfem::HypreParVector &
GetEigenvector(
int index)
const override
56 _eigensolver->SetOperator(
const_cast<mfem::Operator &
>(op));
Class for the Hypre LOBPCG eigensolver.
virtual void SetMassMatrix(mfem::Operator &mass) override
Sets the mass matrix for the eigensolver.
virtual void GetEigenvalues(mfem::Array< mfem::real_t > &eigenvalues) const override
Retrieves the computed eigenvalues.
virtual const mfem::HypreParVector & GetEigenvector(int index) const override
Retrieves the computed eigenvector corresponding to the given index.
virtual void Solve() override
Solves the eigenvalue problem.
virtual void SetPreconditionerImpl() override
Override in solvers that accept a preconditioner.
virtual void ConstructSolver() override
Override in derived classes to construct and set the solver options.
static InputParameters validParams()
std::unique_ptr< mfem::HypreLOBPCG > _eigensolver
Eigensolver to be used for the problem.
virtual void SetOperatorImpl(const mfem::Operator &op) override
Sets the operator for the eigensolver w/ the necessary casting.
const InputParameters & parameters() const
Get the parameters of the object.
Base class for eigensolvers.
std::shared_ptr< LinearSolverBase > _preconditioner
Preconditioner to be used for the problem.