suanPan
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
RelDisp Class Referencefinal

The RelDisp class that handles converger test to indicate if the iteration converges. More...

#include <RelDisp.h>

Inheritance diagram for RelDisp:
Collaboration diagram for RelDisp:

Public Member Functions

 RelDisp (unsigned=0, double=1E-8, unsigned=7, bool=false)
 
unique_ptr< Convergerget_copy () override
 
bool is_converged (unsigned) override
 
- Public Member Functions inherited from Converger
 Converger (unsigned=0, double=1E-8, unsigned=10, bool=false)
 the complete constructor.
 
 Converger (const Converger &)=default
 
 Converger (Converger &&)=default
 
Convergeroperator= (const Converger &)=delete
 
Convergeroperator= (Converger &&)=delete
 
 ~Converger () override=default
 
virtual int initialize ()
 
void set_tolerance (double)
 method to set tolerance.
 
double get_tolerance () const
 method to return tolerance.
 
void set_max_iteration (unsigned)
 
unsigned get_max_iteration () const
 
void set_domain (const weak_ptr< DomainBase > &)
 method to set DomainBase.
 
const weak_ptr< DomainBase > & get_domain () const
 method to return DomainBase.
 
virtual void set_error (double)
 method to set error.
 
double get_error () const
 method to return error.
 
virtual void set_conv_flag (bool)
 method to set conv_flag.
 
bool get_conv_flag () const
 method to return conv_flag.
 
- Public Member Functions inherited from Tag
 Tag (unsigned=0)
 
 Tag (const Tag &)=default
 
 Tag (Tag &&)=default
 
Tagoperator= (const Tag &)=delete
 
Tagoperator= (Tag &&)=delete
 
virtual ~Tag ()=default
 
void set_tag (unsigned) const
 
unsigned get_tag () const
 
void enable ()
 
void disable ()
 
void guard ()
 
void unguard ()
 
bool is_active () const
 
bool is_guarded () const
 
virtual void print ()
 

Additional Inherited Members

- Protected Member Functions inherited from Converger
vec get_residual () const
 
bool is_print () const
 method to return print_flag.
 

Detailed Description

The RelDisp class that handles converger test to indicate if the iteration converges.

Author
tlc
Date
08/08/2017
Version
0.2.0

Constructor & Destructor Documentation

◆ RelDisp()

RelDisp::RelDisp ( unsigned T = 0,
double E = 1E-8,
unsigned M = 7,
bool P = false )
explicit

Member Function Documentation

◆ get_copy()

unique_ptr< Converger > RelDisp::get_copy ( )
overridevirtual

Implements Converger.

◆ is_converged()

bool RelDisp::is_converged ( unsigned )
overridevirtual

Implements Converger.

Here is the call graph for this function:

The documentation for this class was generated from the following files: