ug4
|
#include <fixed_convergence_check.h>
Public Member Functions | |
virtual number | avg_rate () const |
virtual SmartPtr< IConvergenceCheck< TVector > > | clone () |
clone the object More... | |
virtual std::string | config_string () const |
returns information about configuration parameters More... | |
virtual number | defect () const |
returns the current defect More... | |
FixedConvergenceCheck (int numIterations) | |
int | get_offset () const |
get the current offset More... | |
virtual bool | iteration_ended () |
virtual bool | post () |
virtual void | print_line (std::string line) |
prints a line More... | |
virtual number | rate () const |
virtual number | reduction () const |
void | set_info (std::string info) |
sets info string More... | |
void | set_name (std::string name) |
sets the name of the iteration More... | |
void | set_offset (int offset) |
sets the number of spaces printed before output information More... | |
void | set_symbol (char symbol) |
sets the symbol used for output More... | |
virtual void | start (const TVector &d) |
computes the start defect and set it More... | |
virtual void | start_defect (number defect) |
sets the given start defect More... | |
virtual int | step () const |
returns the current number of steps More... | |
virtual void | update (const TVector &d) |
computes the defect and sets it a the next defect value More... | |
virtual void | update_defect (number defect) |
sets the update for the current defect More... | |
virtual | ~FixedConvergenceCheck () |
virtual destructor More... | |
Public Member Functions inherited from ug::IConvergenceCheck< TVector > | |
virtual | ~IConvergenceCheck () |
virtual destructor More... | |
Private Attributes | |
int | m_currentStep |
int | m_numIterations |
int | m_offset |
|
inline |
|
inlinevirtual |
virtual destructor
|
inlinevirtual |
Implements ug::IConvergenceCheck< TVector >.
References UG_ASSERT.
|
inlinevirtual |
clone the object
Implements ug::IConvergenceCheck< TVector >.
References ug::FixedConvergenceCheck< TVector >::m_numIterations.
|
inlinevirtual |
returns information about configuration parameters
this should return necessary information about parameters and possibly calling config_string of subcomponents.
Implements ug::IConvergenceCheck< TVector >.
References ug::FixedConvergenceCheck< TVector >::m_numIterations.
|
inlinevirtual |
|
inlinevirtual |
get the current offset
Implements ug::IConvergenceCheck< TVector >.
References ug::FixedConvergenceCheck< TVector >::m_offset.
|
inlinevirtual |
iteration_ended
Checks if the iteration must be ended. This can be due to convergence or divergence.
Implements ug::IConvergenceCheck< TVector >.
References ug::FixedConvergenceCheck< TVector >::m_numIterations, and ug::FixedConvergenceCheck< TVector >::step().
|
inlinevirtual |
post
post-processes the iteration. Some informative outputs of the status of the iteration after finishing the iteration can be placed here
Implements ug::IConvergenceCheck< TVector >.
|
inlinevirtual |
prints a line
Implements ug::IConvergenceCheck< TVector >.
|
inlinevirtual |
Implements ug::IConvergenceCheck< TVector >.
|
inlinevirtual |
Implements ug::IConvergenceCheck< TVector >.
References UG_ASSERT.
|
inlinevirtual |
sets info string
Implements ug::IConvergenceCheck< TVector >.
|
inlinevirtual |
sets the name of the iteration
Implements ug::IConvergenceCheck< TVector >.
|
inlinevirtual |
sets the number of spaces printed before output information
Implements ug::IConvergenceCheck< TVector >.
References ug::FixedConvergenceCheck< TVector >::m_offset.
|
inlinevirtual |
sets the symbol used for output
Implements ug::IConvergenceCheck< TVector >.
|
inlinevirtual |
computes the start defect and set it
Implements ug::IConvergenceCheck< TVector >.
References ug::FixedConvergenceCheck< TVector >::m_currentStep.
|
inlinevirtual |
sets the given start defect
Implements ug::IConvergenceCheck< TVector >.
References ug::FixedConvergenceCheck< TVector >::m_currentStep.
|
inlinevirtual |
returns the current number of steps
Implements ug::IConvergenceCheck< TVector >.
References ug::FixedConvergenceCheck< TVector >::m_currentStep.
Referenced by ug::FixedConvergenceCheck< TVector >::iteration_ended().
|
inlinevirtual |
computes the defect and sets it a the next defect value
Implements ug::IConvergenceCheck< TVector >.
References ug::FixedConvergenceCheck< TVector >::m_currentStep.
|
inlinevirtual |
sets the update for the current defect
Implements ug::IConvergenceCheck< TVector >.
References ug::FixedConvergenceCheck< TVector >::m_currentStep.
|
private |
|
private |
|
private |