OGS
EquationSystem.h
Go to the documentation of this file.
1
11#pragma once
12
14
15namespace NumLib
16{
19
21enum class IterationResult : char
22{
23 SUCCESS,
24 FAILURE,
26};
27
31{
32public:
40 virtual bool isLinear() const = 0;
41
49 virtual bool requiresNormalization() const = 0;
50
56 virtual void preIteration(const unsigned iter, GlobalVector const& x)
57 {
58 (void)iter;
59 (void)x; // by default do nothing
60 }
61
69 {
70 (void)x; // by default do nothing
72 }
73
75 const int process_id) const = 0;
76
77 virtual ~EquationSystem() = default;
78};
79
81} // namespace NumLib
Global vector based on Eigen vector.
Definition EigenVector.h:25
virtual IterationResult postIteration(GlobalVector const &x)
virtual MathLib::MatrixSpecifications getMatrixSpecifications(const int process_id) const =0
virtual bool requiresNormalization() const =0
virtual bool isLinear() const =0
virtual void preIteration(const unsigned iter, GlobalVector const &x)
virtual ~EquationSystem()=default
IterationResult
Status flags telling the NonlinearSolver if an iteration succeeded.