class CTestNormUnbalance : public ConvergenceTest


Inheritance:


Public Methods

CTestNormUnbalance()
CTestNormUnbalance(double tol, int maxNumIter, int printFlag)
~CTestNormUnbalance()
void setTolerance(double newTol)
int setEquiSolnAlgo(EquiSolnAlgo &theAlgo)
int test(void)
int start(void)
int sendSelf(int commitTag, Channel &theChannel)
int recvSelf(int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker)

Inherited from ConvergenceTest:


Inherited from MovableObject:

Public Methods

int getClassTag(void) const
int getDbTag(void) const
void setDbTag(int dbTag)

Documentation

A CTestNormUnbalance object is an object which can be used in an algorithmic class to test if convergence has been achieved. The CTestNormUnbalance class tests using the norm of the right hand side Vector of a LinearSOE object and a user specified tolerance value.

CTestNormUnbalance()

CTestNormUnbalance(double tol, int );

CTestNormUnbalance(double tol, int maxNumIter, int printFlag)

To be used by the FEM_ObjectBroker object in parallel programs. The integer CLASS_TAGS_CTestNormUnbalance, defined in <classTags.h>, is passed to the ConvergenceTest constructor. Sets the tolerance used in test() to be 0.0 and maxNumIter to be 0. These will be set when recvSelf() is invoked on the object.

~CTestNormUnbalance()

Does nothing

void setTolerance(double newTol)

Sets the tolerance used in test() to be newTol

int setEquiSolnAlgo(EquiSolnAlgo &theAlgo)

It sets a pointer to theAlgo's LinearSOE object. Returns 0 if successful, a -1 is returned and an error message printed if no LinearSOE object has been set in theAlgo.

int test(void)

Returns {currentNumIter} if if the two norm of the LinearSOE objects B Vector is less than the tolerance tol. If no LinearSOE has been set -2 is returned. If the currentNumIter >= maxNumIter an error message is printed and -2 is returned. If none of these conditions is met, the currentnumIter is incremented and -1 is returned. If the print flag is 0 nothing is printed to cerr during the method, if 1 the current iteration and norm are printed to cerr, and if 2 the norm and number of iterations to convergence are printed to cerr.

int start(void)

int sendSelf(int commitTag, Channel &theChannel)

int recvSelf(int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker)


This class has no child classes.

alphabetic index Contents

this page has been generated automatically by a slightly modified version of doc++ for OpenSees

Copyright Contact Us