OGS 6.2.1-76-gbb689931b
EquationSystem.h
Go to the documentation of this file.
1 
10 #pragma once
11 
13 
14 namespace NumLib
15 {
18 
20 enum class IterationResult : char
21 {
22  SUCCESS,
23  FAILURE,
25 };
26 
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)