OGS 6.2.1-710-gde5194452.dirty.20191209112531
EquationSystem.h
Go to the documentation of this file.
1 
11 #pragma once
12 
14 
15 namespace NumLib
16 {
19 
21 enum class IterationResult : char
22 {
23  SUCCESS,
24  FAILURE,
26 };
27 
31 {
32 public:
40  virtual bool isLinear() const = 0;
41 
47  virtual void preIteration(const unsigned iter, GlobalVector const& x)
48  {
49  (void)iter;
50  (void)x; // by default do nothing
51  }
52 
59  virtual IterationResult postIteration(GlobalVector const& x)
60  {
61  (void)x; // by default do nothing
63  }
64 };
65 
67 } // namespace NumLib
virtual IterationResult postIteration(GlobalVector const &x)
IterationResult
Status flags telling the NonlinearSolver if an iteration succeeded.
virtual void preIteration(const unsigned iter, GlobalVector const &x)