https://mooseframework.inl.gov
MFEMEigensolverBase.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #ifdef MOOSE_MFEM_ENABLED
11 
12 #include "MFEMEigensolverBase.h"
13 #include "MFEMProblem.h"
14 
17 {
19  params.addClassDescription("Base class for defining MFEM eigensolver classes for Moose ");
20 
21  params.addParam<mfem::real_t>("l_tol", 1e-5, "Set the relative tolerance.");
22  params.addParam<int>("l_max_its", 10000, "Set the maximum number of iterations.");
23  params.addParam<int>("print_level", 2, "Set the solver verbosity.");
24  params.addParam<MFEMSolverName>("preconditioner", "Optional choice of preconditioner to use.");
25 
26  return params;
27 }
28 
30  : MFEMSolverBase(parameters), _num_modes(getMFEMProblem().getParam<int>("num_modes"))
31 {
32 }
33 
34 #endif
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
static InputParameters validParams()
static InputParameters validParams()
MFEMEigensolverBase(const InputParameters &parameters)
Base class for wrapping mfem::Solver-derived classes.
void addClassDescription(const std::string &doc_string)
This method adds a description of the class that will be displayed in the input file syntax dump...
void addParam(const std::string &name, const S &value, const std::string &doc_string)
These methods add an optional parameter and a documentation string to the InputParameters object...
void ErrorVector unsigned int