Chi-Tech
NonLinearSolverOptions.h
Go to the documentation of this file.
1#ifndef CHITECH_NONLINEARSOLVEROPTIONS_H
2#define CHITECH_NONLINEARSOLVEROPTIONS_H
3
4#include "ChiObject.h"
5
6namespace chi_math
7{
8
10{
11public:
13 explicit NonLinearSolverOptions(const chi::InputParameters& params);
15
16 std::string nl_method_ = "JFNK";
17 std::string l_method_ = "gmres";
18
20
21 std::string petsc_snes_type_ = "newtonls";
22
23 double nl_rel_tol_ = 1.0e-8;
24 double nl_abs_tol_ = 1.0e-8;
25 double nl_sol_tol_ = 1.0e-50;
26 int nl_max_its_ = 50;
29 double l_rel_tol_ = 1.0e-8;
30 double l_abs_tol_ = 1.0e-8;
31 double l_div_tol_ = 1.0e6;
32 int l_max_its_ = 100;
34 double l_gmres_breakdown_tol_ = 1.0e6;
35};
36
37}
38
39#endif // CHITECH_NONLINEARSOLVEROPTIONS_H
static chi::InputParameters GetInputParameters()