OGS
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
NumLib
Definition: ProjectData.h:35
NumLib::EquationSystem::postIteration
virtual IterationResult postIteration(GlobalVector const &x)
Definition: EquationSystem.h:59
NumLib::EquationSystem
Definition: EquationSystem.h:30
NumLib::IterationResult
IterationResult
Status flags telling the NonlinearSolver if an iteration succeeded.
Definition: EquationSystem.h:21
NumLib::EquationSystem::isLinear
virtual bool isLinear() const =0
NumLib::IterationResult::FAILURE
@ FAILURE
NumLib::EquationSystem::preIteration
virtual void preIteration(const unsigned iter, GlobalVector const &x)
Definition: EquationSystem.h:47
NumLib::IterationResult::REPEAT_ITERATION
@ REPEAT_ITERATION
NumLib::IterationResult::SUCCESS
@ SUCCESS
NumLib::MatrixSpecificationsProvider
Definition: MatrixProviderUser.h:20
MatrixProviderUser.h