37 #ifndef __H__LIB_ALGEBRA__OPERATOR__ALGEBRA_CONVERGENCE_CHECK__
38 #define __H__LIB_ALGEBRA__OPERATOR__ALGEBRA_CONVERGENCE_CHECK__
68 template <
class TVector>
81 virtual std::string
config_string()
const {
return std::string(
"AlgebraicConvCheck");}
85 void start(
const TVector& d);
87 void update(
const TVector& d);
121 for(
size_t cmp = 0; cmp <
m_vCmpInfo.size(); ++cmp)
138 for (
size_t cmp = 0; cmp <
m_vCmpInfo.size(); cmp++)
179 for(
size_t fct = 0; fct <
m_vCmpInfo.size(); ++fct)
187 for(
size_t fct = 0; fct <
m_vCmpInfo.size(); ++fct)
195 for(
size_t fct = 0; fct <
m_vCmpInfo.size(); ++fct)
location name
Definition: checkpoint_util.lua:128
location verbose
Definition: checkpoint_util.lua:128
Definition: smart_pointer.h:108
Definition: algebra_conv_check.h:70
const std::string & fctName(size_t i)
Definition: algebra_conv_check.h:149
virtual SmartPtr< IConvergenceCheck< TVector > > clone()
clones this instance
Definition: algebra_conv_check_impl.h:87
Stopwatch m_stopwatch
a stopwatch
Definition: algebra_conv_check.h:217
number m_relReduction
Relative reduction required for component.
Definition: algebra_conv_check.h:205
void update(const TVector &d)
computes the defect and sets it a the next defect value
Definition: algebra_conv_check_impl.h:193
void get_statistics(double *first, double *last, int &niter) const
statistics
Definition: algebra_conv_check.h:136
int m_currentStep
current step
Definition: algebra_conv_check.h:208
void set_maximum_steps(int maxSteps)
sets maximum number of iteration steps
Definition: algebra_conv_check.h:107
bool is_valid_number(number value)
Definition: algebra_conv_check_impl.h:339
number norm(const TVector &vec, size_t cmp)
calculates the 2-norm of the entries of the vector vec specified by index
Definition: algebra_conv_check_impl.h:353
void update_defect(number newDefect)
sets the update for the current defect
Definition: algebra_conv_check_impl.h:183
std::string m_info
info for iteration (e.g. preconditioner type)
Definition: algebra_conv_check.h:214
bool iteration_ended()
Definition: algebra_conv_check_impl.h:227
number reduction() const
Definition: algebra_conv_check.h:94
void set_symbol(char symbol)
sets the symbol used for output
Definition: algebra_conv_check.h:101
void set_component_checks(const number abs, const number red)
sets check for all components
Definition: algebra_conv_check.h:119
number defect() const
returns the current defect
Definition: algebra_conv_check.h:93
void start_defect(number initialDefect)
defect control
Definition: algebra_conv_check_impl.h:99
virtual std::string config_string() const
returns information about configuration parameters
Definition: algebra_conv_check.h:81
AlgebraicConvCheck(size_t ncmp)
Definition: algebra_conv_check_impl.h:51
int m_offset
number of spaces inserted before output
Definition: algebra_conv_check.h:211
char m_symbol
symbol for output appearance
Definition: algebra_conv_check.h:212
void set_name(std::string name)
sets the name of the iteration
Definition: algebra_conv_check.h:102
number m_minDefect
Minimal required Defect of component.
Definition: algebra_conv_check.h:204
number avg_rate() const
Definition: algebra_conv_check.h:96
void set_time_measurement(bool yesOrNo)
enables time measurement
Definition: algebra_conv_check.h:129
bool m_bTimeMeas
enables time measurement
Definition: algebra_conv_check.h:216
number last_defect_all() const
returns last defect for all components
Definition: algebra_conv_check.h:185
void print_line(std::string line)
prints a line using prefixes
Definition: algebra_conv_check_impl.h:331
int step() const
information about current status
Definition: algebra_conv_check.h:92
void start(const TVector &d)
computes the start defect and set it
Definition: algebra_conv_check_impl.h:109
void set_offset(int offset)
sets the number of spaces printed before output information
Definition: algebra_conv_check.h:100
void print_offset()
Definition: algebra_conv_check_impl.h:321
std::string m_name
name of iteration
Definition: algebra_conv_check.h:213
int get_offset() const
output
Definition: algebra_conv_check.h:99
bool post()
Definition: algebra_conv_check_impl.h:252
void set_component_check(const size_t cmp, const number abs, const number red)
sets check for single component
Definition: algebra_conv_check.h:110
number initial_defect_all() const
returns initial defect for all components
Definition: algebra_conv_check.h:193
std::vector< CmpInfo > m_vCmpInfo
info on components
Definition: algebra_conv_check.h:170
int m_maxSteps
maximum number of steps to be performed
Definition: algebra_conv_check.h:203
void set_verbose(bool level)
sets if verbose
Definition: algebra_conv_check.h:126
bool m_verbose
verbose level
Definition: algebra_conv_check.h:207
number defect_all() const
returns defect for all components
Definition: algebra_conv_check.h:177
number rate() const
Definition: algebra_conv_check.h:95
void set_info(std::string info)
sets info string
Definition: algebra_conv_check.h:103
Definition: convergence_check.h:72
Stopwatch class for quickly taking times.
Definition: stopwatch.h:124
double number
Definition: types.h:124
stopwatch class for quickly taking times
Definition: algebra_conv_check.h:156
number minDefect
Minimal required Defect of component.
Definition: algebra_conv_check.h:164
number weight
weight for this component
Definition: algebra_conv_check.h:166
number initDefect
Initial Defect of component.
Definition: algebra_conv_check.h:160
number lastDefect
Last Defect if component.
Definition: algebra_conv_check.h:162
number currDefect
Current Defect of component.
Definition: algebra_conv_check.h:161
number relReduction
Relative reduction required for component.
Definition: algebra_conv_check.h:165
CmpInfo(number minDef, number relRed)
Definition: algebra_conv_check.h:157
std::string name
Name of components.
Definition: algebra_conv_check.h:158