45 weak_ptr<DomainBase> database;
49 unsigned max_iteration;
51 const bool print_flag;
55 bool conv_flag =
false;
62 explicit Converger(
unsigned = 0,
double = 1
E-8,
unsigned = 10,
bool =
false);
80 [[nodiscard]]
const weak_ptr<DomainBase>&
get_domain()
const;
The Converger class handles converger test to indicate if the iteration converges according to variou...
Definition: Converger.h:44
bool is_print() const
method to return print_flag.
Definition: Converger.cpp:112
Converger & operator=(Converger &&)=delete
void set_domain(const weak_ptr< DomainBase > &)
method to set DomainBase.
Definition: Converger.cpp:64
double get_tolerance() const
method to return tolerance.
Definition: Converger.cpp:54
const weak_ptr< DomainBase > & get_domain() const
method to return DomainBase.
Definition: Converger.cpp:70
virtual unique_ptr< Converger > get_copy()=0
virtual bool is_converged(unsigned)=0
bool get_conv_flag() const
method to return conv_flag.
Definition: Converger.cpp:94
~Converger() override=default
virtual int initialize()
Definition: Converger.cpp:35
void set_tolerance(double)
method to set tolerance.
Definition: Converger.cpp:48
Converger & operator=(const Converger &)=delete
Converger(unsigned=0, double=1E-8, unsigned=10, bool=false)
the complete constructor.
Definition: Converger.cpp:29
vec get_residual() const
Definition: Converger.cpp:96
virtual void set_error(double)
method to set error.
Definition: Converger.cpp:76
double get_error() const
method to return error.
Definition: Converger.cpp:82
virtual void set_conv_flag(bool)
method to set conv_flag.
Definition: Converger.cpp:88
unsigned get_max_iteration() const
Definition: Converger.cpp:58
Converger(const Converger &)=default
void set_max_iteration(unsigned)
Definition: Converger.cpp:56
Converger(Converger &&)=default
The DomainBase class is a template.
Definition: DomainBase.h:104
A base Tag class.
Definition: Tag.h:38