20 DBUG(
"Create local nonlinear solver parameters.");
21 auto const maximum_iterations =
25 DBUG(
"\tmaximum_iterations: {:d}.", maximum_iterations);
27 auto const error_tolerance =
33 "The 'error_tolerance' tag for the Newton-Raphson solver is "
35 "Use new tags 'residuum_tolerance' and 'increment_tolerance'.\n"
36 "For now we use residuum_tolerance {} and increment_tolerance 0.",
38 return {maximum_iterations, *error_tolerance, 0};
41 auto const residuum_tolerance =
45 DBUG(
"\tresiduum_tolerance: {:g}.", residuum_tolerance);
47 auto const increment_tolerance =
51 DBUG(
"\tincrement_tolerance: {:g}.", increment_tolerance);
53 return {maximum_iterations, residuum_tolerance, increment_tolerance};
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
void WARN(fmt::format_string< Args... > fmt, Args &&... args)
std::optional< T > getConfigParameterOptional(std::string const ¶m) const
T getConfigParameter(std::string const ¶m) const
NewtonRaphsonSolverParameters createNewtonRaphsonSolverParameters(BaseLib::ConfigTree const &config)