52 #ifndef ConvergenceTest_h 53 #define ConvergenceTest_h 63 #include <utility/actor/actor/MovableObject.h> 64 #include "xc_utils/src/nucleo/EntWOwner.h" 65 #include "utility/matrix/Vector.h" 66 #include "solution/system_of_eqn/linearSOE/LinearSOE.h" 107 ConvergenceTest(EntCmd *owr,
int clasTag,
int maxIter,
int prtFlg,
int normType,
int sz_norms= 1);
113 virtual std::string getStatusMsg(
const int &flag= 1)
const= 0;
114 virtual int start(
void);
115 virtual int test(
void)= 0;
117 int getMaxNumIter(
void)
const;
118 void setMaxNumIter(
const int &);
119 int getCurrentIter(
void)
const;
120 void setCurrentIter(
const int &);
121 int getPrintFlag(
void)
const;
122 void setPrintFlag(
const int &);
123 int getNormType(
void)
const;
124 void setNormType(
const int &);
126 virtual int getNumTests(
void)
const;
127 virtual int getMaxNumTests(
void)
const;
128 virtual double getRatioNumToMax(
void)
const;
129 virtual const Vector &getNorms(
void)
const;
std::string getDeltaXRNormsMessage(void) const
Returns a string with the values of x and b vector norms.
Definition: ConvergenceTest.cpp:269
int maxNumIter
max number of iterations
Definition: ConvergenceTest.h:81
Solution procedure for the finite element problem. The solution procedure is definde by specifiying: ...
Definition: SoluMethod.h:76
std::string getDeltaXRMessage(void) const
Returns a string with the values of x and b vectors.
Definition: ConvergenceTest.cpp:261
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: ConvergenceTest.cpp:204
double calculatedEnergyProduct
Last calculated |0.5*(x ^ b)|.
Definition: ConvergenceTest.h:90
convergence test.
Definition: ConvergenceTest.h:75
Object that can move between processes.
Definition: MovableObject.h:91
double getEnergyProduct(void) const
Returns the the energy increment, which is 0.5 times the absolute value of the product of the rhs and...
Definition: ConvergenceTest.cpp:184
double lastRatio
Last calculated ratio (if any).
Definition: ConvergenceTest.h:87
double calculatedNormB
Last calculated |b|.
Definition: ConvergenceTest.h:89
const Vector & getB(void) const
Returns the vector de términos independientes.
Definition: ConvergenceTest.cpp:174
std::string getFailedToConvergeMessage(void) const
Returns a string with the proper failed to converge message.
Definition: ConvergenceTest.cpp:251
Linea system of equations. This is the class definition for LinearSOE. LinearSOE is an abstract base ...
Definition: LinearSOE.h:86
std::string getTestIterationMessage(void) const
Returns a string with the name of the class and the iteration number.
Definition: ConvergenceTest.cpp:245
bool hasLinearSOE(void) const
Returns true ifpuede acceder al system of equations.
Definition: ConvergenceTest.cpp:146
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: ConvergenceTest.cpp:195
int printFlag
a flag indicating if to print on test
Definition: ConvergenceTest.h:82
Vector norms
vector to hold the norms
Definition: ConvergenceTest.h:84
LinearSOE * getLinearSOEPtr(void)
Returns a pointer to the system of equations.
Definition: ConvergenceTest.cpp:150
int nType
type of norm to use (1-norm, 2-norm, p-norm, max-norm)
Definition: ConvergenceTest.h:83
Communication parameters between processes.
Definition: CommParameters.h:65
double getNormB(void) const
Return the norma del vector de términos independientes.
Definition: ConvergenceTest.cpp:178
int currentIter
number of times test() has been invokes since last start()
Definition: ConvergenceTest.h:80
================================================================================
Definition: ContinuaReprComponent.h:34
double getNormX(void) const
Return the norma del vector de incógnitas.
Definition: ConvergenceTest.cpp:170
double calculatedNormX
Last calculated |x|.
Definition: ConvergenceTest.h:88
const Vector & getX(void) const
Returns the vector de incógnitas.
Definition: ConvergenceTest.cpp:166