Line data Source code
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 "MFEMNonlinearSolverBase.h" 13 : 14 : namespace Moose::MFEM 15 : { 16 : InputParameters 17 4352 : NonlinearSolverBase::validParams() 18 : { 19 4352 : InputParameters params = SolverBase::validParams(); 20 8704 : params.addClassDescription("Base class for defining nonlinear MFEM solver strategies for Moose."); 21 8704 : params.set<bool>("use_initial_guess", /*quiet_mode=*/true) = true; 22 17408 : params.addParam<unsigned int>("max_its", 1, "Maximum nonlinear iterations."); 23 17408 : params.addParam<Real>("abs_tol", 1.0e-50, "Absolute nonlinear tolerance."); 24 17408 : params.addParam<Real>("rel_tol", 1.0e-8, "Relative nonlinear tolerance."); 25 13056 : params.addParam<unsigned int>("print_level", 1, "Solver verbosity."); 26 4352 : return params; 27 0 : } 28 : 29 50 : NonlinearSolverBase::NonlinearSolverBase(const InputParameters & parameters) 30 50 : : SolverBase(parameters) 31 : { 32 50 : } 33 : } // namespace Moose::MFEM 34 : 35 : #endif