27#include "neml2/solvers/Solver.h"
28#include "neml2/solvers/NonlinearSystem.h"
The wrapper (decorator) for cross-referencing unresolved values at parse time.
Definition CrossRef.h:54
The nonlinear solver solves a nonlinear system of equations.
Definition NonlinearSolver.h:37
unsigned int miters
Maximum number of iterations.
Definition NonlinearSolver.h:83
virtual Result solve(NonlinearSystem &system, const NonlinearSystem::Sol< false > &x0)=0
Solve the given nonlinear system.
NonlinearSolver(const OptionSet &options)
Construct a new NonlinearSolver object.
Definition NonlinearSolver.cxx:47
Real rtol
Relative tolerance.
Definition NonlinearSolver.h:81
static OptionSet expected_options()
Definition NonlinearSolver.cxx:30
RetCode
Definition NonlinearSolver.h:40
@ MAXITER
Maximum number of iterations reached (without convergence)
@ FAILURE
Solver failed to converge.
@ SUCCESS
Solver converged successfully.
Real atol
Absolute tolerance.
Definition NonlinearSolver.h:79
Definition of a nonlinear system of equations.
Definition NonlinearSystem.h:37
A custom map-like data structure. The keys are strings, and the values can be nonhomogeneously typed.
Definition OptionSet.h:85
The solver solves a system of equations.
Definition Solver.h:42
Definition CrossRef.cxx:31
Definition NonlinearSolver.h:50
std::size_t iterations
Number of iterations before convergence.
Definition NonlinearSolver.h:56
RetCode ret
Solver return code,.
Definition NonlinearSolver.h:52
NonlinearSystem::Sol< false > solution
Solution to the nonlinear system.
Definition NonlinearSolver.h:54
Definition NonlinearSystem.h:89