|
ug4
|
#include <convergence_check.h>
Inheritance diagram for ug::IConvergenceCheck< TVector >:Public Member Functions | |
| virtual number | avg_rate () const =0 |
| virtual SmartPtr< IConvergenceCheck< TVector > > | clone ()=0 |
| clone the object | |
| virtual std::string | config_string () const =0 |
| returns information about configuration parameters | |
| virtual number | defect () const =0 |
| returns the current defect | |
| virtual int | get_offset () const =0 |
| get the current offset | |
| virtual bool | iteration_ended ()=0 |
| virtual bool | post ()=0 |
| virtual void | print_line (std::string line)=0 |
| prints a line | |
| virtual number | rate () const =0 |
| virtual number | reduction () const =0 |
| virtual void | set_info (std::string name)=0 |
| sets info string | |
| virtual void | set_name (std::string name)=0 |
| sets the name of the iteration | |
| virtual void | set_offset (int offset)=0 |
| sets the number of spaces printed before output information | |
| virtual void | set_symbol (char symbol)=0 |
| sets the symbol used for output | |
| virtual void | start (const TVector &d)=0 |
| computes the start defect and set it | |
| virtual void | start_defect (number defect)=0 |
| sets the given start defect | |
| virtual int | step () const =0 |
| returns the current number of steps | |
| virtual void | update (const TVector &d)=0 |
| computes the defect and sets it a the next defect value | |
| virtual void | update_defect (number defect)=0 |
| sets the update for the current defect | |
| virtual | ~IConvergenceCheck () |
| virtual destructor | |
This is the base class for a convergence checking object. An instance is passed to an iterative solver to control the convergence.
| TVector | vector type |
|
inlinevirtual |
virtual destructor
|
pure virtual |
|
pure virtual |
clone the object
Implemented in ug::AlgebraicConvCheck< TVector >, ug::StdConvCheck< TVector >, ug::EnergyConvCheck< TVector >, ug::FixedConvergenceCheck< TVector >, and ug::CompositeConvCheck< TVector, TDomain >.
|
pure virtual |
returns information about configuration parameters
this should return necessary information about parameters and possibly calling config_string of subcomponents.
Implemented in ug::AlgebraicConvCheck< TVector >, ug::StdConvCheck< TVector >, ug::EnergyConvCheck< TVector >, ug::FixedConvergenceCheck< TVector >, and ug::CompositeConvCheck< TVector, TDomain >.
|
pure virtual |
returns the current defect
Implemented in ug::AlgebraicConvCheck< TVector >, ug::StdConvCheck< TVector >, ug::FixedConvergenceCheck< TVector >, and ug::CompositeConvCheck< TVector, TDomain >.
|
pure virtual |
get the current offset
Implemented in ug::AlgebraicConvCheck< TVector >, ug::StdConvCheck< TVector >, ug::FixedConvergenceCheck< TVector >, and ug::CompositeConvCheck< TVector, TDomain >.
|
pure virtual |
iteration_ended
Checks if the iteration must be ended. This can be due to convergence or divergence.
Implemented in ug::AlgebraicConvCheck< TVector >, ug::StdConvCheck< TVector >, ug::FixedConvergenceCheck< TVector >, and ug::CompositeConvCheck< TVector, TDomain >.
|
pure virtual |
post
post-processes the iteration. Some informative outputs of the status of the iteration after finishing the iteration can be placed here
Implemented in ug::AlgebraicConvCheck< TVector >, ug::StdConvCheck< TVector >, ug::FixedConvergenceCheck< TVector >, and ug::CompositeConvCheck< TVector, TDomain >.
|
pure virtual |
prints a line
Implemented in ug::AlgebraicConvCheck< TVector >, ug::StdConvCheck< TVector >, ug::FixedConvergenceCheck< TVector >, and ug::CompositeConvCheck< TVector, TDomain >.
|
pure virtual |
|
pure virtual |
|
pure virtual |
sets info string
Implemented in ug::AlgebraicConvCheck< TVector >, ug::StdConvCheck< TVector >, ug::FixedConvergenceCheck< TVector >, and ug::CompositeConvCheck< TVector, TDomain >.
|
pure virtual |
sets the name of the iteration
Implemented in ug::AlgebraicConvCheck< TVector >, ug::StdConvCheck< TVector >, ug::FixedConvergenceCheck< TVector >, and ug::CompositeConvCheck< TVector, TDomain >.
|
pure virtual |
sets the number of spaces printed before output information
Implemented in ug::AlgebraicConvCheck< TVector >, ug::StdConvCheck< TVector >, ug::FixedConvergenceCheck< TVector >, and ug::CompositeConvCheck< TVector, TDomain >.
|
pure virtual |
sets the symbol used for output
Implemented in ug::AlgebraicConvCheck< TVector >, ug::StdConvCheck< TVector >, ug::FixedConvergenceCheck< TVector >, and ug::CompositeConvCheck< TVector, TDomain >.
|
pure virtual |
computes the start defect and set it
Implemented in ug::AlgebraicConvCheck< TVector >, ug::StdConvCheck< TVector >, ug::EnergyConvCheck< TVector >, ug::FixedConvergenceCheck< TVector >, and ug::CompositeConvCheck< TVector, TDomain >.
|
pure virtual |
sets the given start defect
Implemented in ug::FixedConvergenceCheck< TVector >, ug::AlgebraicConvCheck< TVector >, ug::StdConvCheck< TVector >, and ug::CompositeConvCheck< TVector, TDomain >.
|
pure virtual |
returns the current number of steps
Implemented in ug::AlgebraicConvCheck< TVector >, ug::StdConvCheck< TVector >, ug::FixedConvergenceCheck< TVector >, and ug::CompositeConvCheck< TVector, TDomain >.
|
pure virtual |
computes the defect and sets it a the next defect value
Implemented in ug::AlgebraicConvCheck< TVector >, ug::StdConvCheck< TVector >, ug::EnergyConvCheck< TVector >, ug::FixedConvergenceCheck< TVector >, and ug::CompositeConvCheck< TVector, TDomain >.
|
pure virtual |
sets the update for the current defect
Implemented in ug::FixedConvergenceCheck< TVector >, ug::AlgebraicConvCheck< TVector >, ug::StdConvCheck< TVector >, and ug::CompositeConvCheck< TVector, TDomain >.