11 #include "PetscSupport.h"
12 #include "InputParameters.h"
13 #include "MooseEnum.h"
14 #include "FEProblem.h"
15 #include "MooseError.h"
23 InputParameters params = validParams<LineSearch>();
24 params.addRequiredParam<
unsigned>(
"allowed_lambda_cuts",
25 "The number of times lambda is allowed to get cut");
26 params.addRequiredParam<Real>(
"contact_ltol",
27 "The linear tolerance to use when the contact set is changing.");
28 params.addRequiredParam<
bool>(
"affect_ltol",
29 "Whether to change the linear tolerance from the default value "
30 "when the contact set is changing");
31 MooseEnum line_search_package(
"petsc moose");
36 : LineSearch(parameters),
37 _user_ksp_rtol_set(false),
38 _allowed_lambda_cuts(getParam<unsigned>(
"allowed_lambda_cuts")),
39 _contact_ltol(getParam<Real>(
"contact_ltol")),
40 _affect_ltol(getParam<bool>(
"affect_ltol"))
47 if (!contact_set.empty())
48 _console << contact_set.size() <<
" nodes in contact\n";
50 _console <<
"No nodes in contact\n";
59 for (
auto & node : mech_set)