33 #ifndef __H__LIB_ALGEBRA__OPERATOR__ENERGY_CONVERGENCE_CHECK__
34 #define __H__LIB_ALGEBRA__OPERATOR__ENERGY_CONVERGENCE_CHECK__
41 template <
typename TVector>
51 :
base_type(maxSteps, minDefect, relReduction,
verbose, suppressUnsuccessful) {}
74 tmp = d.clone_without_values();
75 tmp2 = d.clone_without_values();
location verbose
Definition: checkpoint_util.lua:128
Definition: smart_pointer.h:108
bool valid() const
returns true if the pointer is valid, false if not.
Definition: smart_pointer.h:206
Definition: energy_convergence_check.h:43
EnergyConvCheck(int maxSteps, number minDefect, number relReduction, bool verbose)
Definition: energy_convergence_check.h:48
EnergyConvCheck(int maxSteps, number minDefect, number relReduction)
Definition: energy_convergence_check.h:47
double energy_norm(const TVector &d)
Definition: energy_convergence_check.h:70
StdConvCheck< TVector > base_type
Definition: energy_convergence_check.h:44
virtual std::string config_string() const
returns information about configuration parameters
Definition: energy_convergence_check.h:87
void update(const TVector &d)
computes the defect and sets it a the next defect value
Definition: energy_convergence_check.h:65
void set_linear_operator(SmartPtr< ILinearOperator< TVector > > op)
Definition: energy_convergence_check.h:95
SmartPtr< TVector > tmp
Definition: energy_convergence_check.h:101
EnergyConvCheck()
Definition: energy_convergence_check.h:46
EnergyConvCheck(int maxSteps, number minDefect, number relReduction, bool verbose, bool suppressUnsuccessful)
Definition: energy_convergence_check.h:50
SmartPtr< ILinearOperator< TVector > > m_op
Definition: energy_convergence_check.h:102
void start(const TVector &d)
computes the start defect and set it
Definition: energy_convergence_check.h:61
SmartPtr< TVector > tmp2
Definition: energy_convergence_check.h:101
virtual SmartPtr< IConvergenceCheck< TVector > > clone()
clone the object
Definition: energy_convergence_check.h:53
describes a linear mapping X->Y
Definition: linear_operator.h:80
Definition: convergence_check.h:179
number m_minDefect
Definition: convergence_check.h:262
int m_maxSteps
Definition: convergence_check.h:259
void update_defect(number newDefect)
sets the update for the current defect
Definition: convergence_check_impl.h:140
number m_relReduction
Definition: convergence_check.h:265
void start_defect(number initialDefect)
sets the given start defect
Definition: convergence_check_impl.h:85
@ PST_CONSISTENT
Definition: parallel_storage_type.h:68
double number
Definition: types.h:124
double VecProd(const double &a, const double &b)
returns scal<a, b>
Definition: operations_vec.h:84