ug4
|
#include <convergence_check.h>
Public Member Functions | |
virtual number | avg_rate () const =0 |
virtual SmartPtr< IConvergenceCheck< TVector > > | clone ()=0 |
clone the object More... | |
virtual std::string | config_string () const =0 |
returns information about configuration parameters More... | |
virtual number | defect () const =0 |
returns the current defect More... | |
virtual int | get_offset () const =0 |
get the current offset More... | |
virtual bool | iteration_ended ()=0 |
virtual bool | post ()=0 |
virtual void | print_line (std::string line)=0 |
prints a line More... | |
virtual number | rate () const =0 |
virtual number | reduction () const =0 |
virtual void | set_info (std::string name)=0 |
sets info string More... | |
virtual void | set_name (std::string name)=0 |
sets the name of the iteration More... | |
virtual void | set_offset (int offset)=0 |
sets the number of spaces printed before output information More... | |
virtual void | set_symbol (char symbol)=0 |
sets the symbol used for output More... | |
virtual void | start (const TVector &d)=0 |
computes the start defect and set it More... | |
virtual void | start_defect (number defect)=0 |
sets the given start defect More... | |
virtual int | step () const =0 |
returns the current number of steps More... | |
virtual void | update (const TVector &d)=0 |
computes the defect and sets it a the next defect value More... | |
virtual void | update_defect (number defect)=0 |
sets the update for the current defect More... | |
virtual | ~IConvergenceCheck () |
virtual destructor More... | |
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::CompositeConvCheck< TVector, TDomain >, ug::FixedConvergenceCheck< TVector >, ug::EnergyConvCheck< TVector >, ug::StdConvCheck< TVector >, and ug::AlgebraicConvCheck< TVector >.
|
pure virtual |
returns information about configuration parameters
this should return necessary information about parameters and possibly calling config_string of subcomponents.
Implemented in ug::CompositeConvCheck< TVector, TDomain >, ug::FixedConvergenceCheck< TVector >, ug::EnergyConvCheck< TVector >, ug::StdConvCheck< TVector >, and ug::AlgebraicConvCheck< TVector >.
|
pure virtual |
returns the current defect
Implemented in ug::CompositeConvCheck< TVector, TDomain >, ug::FixedConvergenceCheck< TVector >, ug::StdConvCheck< TVector >, and ug::AlgebraicConvCheck< TVector >.
|
pure virtual |
get the current offset
Implemented in ug::CompositeConvCheck< TVector, TDomain >, ug::FixedConvergenceCheck< TVector >, ug::StdConvCheck< TVector >, and ug::AlgebraicConvCheck< TVector >.
|
pure virtual |
iteration_ended
Checks if the iteration must be ended. This can be due to convergence or divergence.
Implemented in ug::CompositeConvCheck< TVector, TDomain >, ug::FixedConvergenceCheck< TVector >, ug::StdConvCheck< TVector >, and ug::AlgebraicConvCheck< TVector >.
|
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::CompositeConvCheck< TVector, TDomain >, ug::FixedConvergenceCheck< TVector >, ug::StdConvCheck< TVector >, and ug::AlgebraicConvCheck< TVector >.
|
pure virtual |
prints a line
Implemented in ug::CompositeConvCheck< TVector, TDomain >, ug::FixedConvergenceCheck< TVector >, ug::StdConvCheck< TVector >, and ug::AlgebraicConvCheck< TVector >.
|
pure virtual |
|
pure virtual |
|
pure virtual |
sets info string
Implemented in ug::CompositeConvCheck< TVector, TDomain >, ug::FixedConvergenceCheck< TVector >, ug::StdConvCheck< TVector >, and ug::AlgebraicConvCheck< TVector >.
|
pure virtual |
sets the name of the iteration
Implemented in ug::CompositeConvCheck< TVector, TDomain >, ug::FixedConvergenceCheck< TVector >, ug::StdConvCheck< TVector >, and ug::AlgebraicConvCheck< TVector >.
|
pure virtual |
sets the number of spaces printed before output information
Implemented in ug::CompositeConvCheck< TVector, TDomain >, ug::FixedConvergenceCheck< TVector >, ug::StdConvCheck< TVector >, and ug::AlgebraicConvCheck< TVector >.
|
pure virtual |
sets the symbol used for output
Implemented in ug::CompositeConvCheck< TVector, TDomain >, ug::FixedConvergenceCheck< TVector >, ug::StdConvCheck< TVector >, and ug::AlgebraicConvCheck< TVector >.
|
pure virtual |
computes the start defect and set it
Implemented in ug::CompositeConvCheck< TVector, TDomain >, ug::FixedConvergenceCheck< TVector >, ug::EnergyConvCheck< TVector >, ug::StdConvCheck< TVector >, and ug::AlgebraicConvCheck< TVector >.
|
pure virtual |
sets the given start defect
Implemented in ug::CompositeConvCheck< TVector, TDomain >, ug::StdConvCheck< TVector >, ug::AlgebraicConvCheck< TVector >, and ug::FixedConvergenceCheck< TVector >.
|
pure virtual |
returns the current number of steps
Implemented in ug::CompositeConvCheck< TVector, TDomain >, ug::FixedConvergenceCheck< TVector >, ug::StdConvCheck< TVector >, and ug::AlgebraicConvCheck< TVector >.
|
pure virtual |
computes the defect and sets it a the next defect value
Implemented in ug::CompositeConvCheck< TVector, TDomain >, ug::FixedConvergenceCheck< TVector >, ug::EnergyConvCheck< TVector >, ug::StdConvCheck< TVector >, and ug::AlgebraicConvCheck< TVector >.
|
pure virtual |
sets the update for the current defect
Implemented in ug::CompositeConvCheck< TVector, TDomain >, ug::StdConvCheck< TVector >, ug::AlgebraicConvCheck< TVector >, and ug::FixedConvergenceCheck< TVector >.