https://mooseframework.inl.gov
Loading...
Searching...
No Matches
MFEMNonlinearSolverBase.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
13
14namespace Moose::MFEM
15{
18{
20 params.addClassDescription("Base class for defining nonlinear MFEM solver strategies for Moose.");
21 params.set<bool>("use_initial_guess", /*quiet_mode=*/true) = true;
22 params.addParam<unsigned int>("max_its", 1, "Maximum nonlinear iterations.");
23 params.addParam<Real>("abs_tol", 1.0e-50, "Absolute nonlinear tolerance.");
24 params.addParam<Real>("rel_tol", 1.0e-8, "Relative nonlinear tolerance.");
25 params.addParam<unsigned int>("print_level", 1, "Solver verbosity.");
26 return params;
27}
28
30 : SolverBase(parameters)
31{
32}
33} // namespace Moose::MFEM
34
35#endif
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
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 addClassDescription(const std::string &doc_string)
This method adds a description of the class that will be displayed in the input file syntax dump.
T & set(const std::string &name, bool quiet_mode=false)
Returns a writable reference to the named parameters.
NonlinearSolverBase(const InputParameters &parameters)
Base class for wrapping mfem::Solver-derived classes.
static InputParameters validParams()
Utilities for converting between vector(s) of libMesh Points and MFEM Vector(s).