33 #ifndef FIXED_CONVERGENCE_CHECK_H_
34 #define FIXED_CONVERGENCE_CHECK_H_
39 template <
typename TVector>
55 virtual void start(
const TVector& d)
67 virtual void update(
const TVector& d)
140 std::stringstream ss;
141 ss <<
"FixedConvergenceCheck( fix # steps = " <<
m_numIterations <<
")";
location name
Definition: checkpoint_util.lua:128
Definition: smart_pointer.h:108
Definition: fixed_convergence_check.h:41
int get_offset() const
get the current offset
Definition: fixed_convergence_check.h:125
virtual void update_defect(number defect)
sets the update for the current defect
Definition: fixed_convergence_check.h:61
virtual bool post()
Definition: fixed_convergence_check.h:94
void set_info(std::string info)
sets info string
Definition: fixed_convergence_check.h:129
virtual void update(const TVector &d)
computes the defect and sets it a the next defect value
Definition: fixed_convergence_check.h:67
virtual std::string config_string() const
returns information about configuration parameters
Definition: fixed_convergence_check.h:138
virtual void start(const TVector &d)
computes the start defect and set it
Definition: fixed_convergence_check.h:55
virtual void print_line(std::string line)
prints a line
Definition: fixed_convergence_check.h:118
virtual number defect() const
returns the current defect
Definition: fixed_convergence_check.h:104
virtual bool iteration_ended()
Definition: fixed_convergence_check.h:80
virtual number avg_rate() const
Definition: fixed_convergence_check.h:116
virtual number rate() const
Definition: fixed_convergence_check.h:113
int m_offset
Definition: fixed_convergence_check.h:146
FixedConvergenceCheck(int numIterations)
Definition: fixed_convergence_check.h:43
virtual void start_defect(number defect)
sets the given start defect
Definition: fixed_convergence_check.h:49
void set_offset(int offset)
sets the number of spaces printed before output information
Definition: fixed_convergence_check.h:126
virtual int step() const
returns the current number of steps
Definition: fixed_convergence_check.h:107
virtual number reduction() const
Definition: fixed_convergence_check.h:110
virtual ~FixedConvergenceCheck()
virtual destructor
Definition: fixed_convergence_check.h:146
void set_name(std::string name)
sets the name of the iteration
Definition: fixed_convergence_check.h:128
int m_currentStep
Definition: fixed_convergence_check.h:151
void set_symbol(char symbol)
sets the symbol used for output
Definition: fixed_convergence_check.h:127
int m_numIterations
Definition: fixed_convergence_check.h:150
virtual SmartPtr< IConvergenceCheck< TVector > > clone()
clone the object
Definition: fixed_convergence_check.h:132
Definition: convergence_check.h:72
#define UG_ASSERT(expr, msg)
Definition: assert.h:70
double number
Definition: types.h:124