Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ConvergenceTest.h

Go to the documentation of this file.
00001 /* ****************************************************************** **
00002 **    OpenSees - Open System for Earthquake Engineering Simulation    **
00003 **          Pacific Earthquake Engineering Research Center            **
00004 **                                                                    **
00005 **                                                                    **
00006 ** (C) Copyright 1999, The Regents of the University of California    **
00007 ** All Rights Reserved.                                               **
00008 **                                                                    **
00009 ** Commercial use of this program without express permission of the   **
00010 ** University of California, Berkeley, is strictly prohibited.  See   **
00011 ** file 'COPYRIGHT'  in main directory for information on usage and   **
00012 ** redistribution,  and for a DISCLAIMER OF ALL WARRANTIES.           **
00013 **                                                                    **
00014 ** Developed by:                                                      **
00015 **   Frank McKenna (fmckenna@ce.berkeley.edu)                         **
00016 **   Gregory L. Fenves (fenves@ce.berkeley.edu)                       **
00017 **   Filip C. Filippou (filippou@ce.berkeley.edu)                     **
00018 **                                                                    **
00019 ** ****************************************************************** */
00020                                                                         
00021 // $Revision: 1.3 $
00022 // $Date: 2001/06/14 05:26:47 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/convergenceTest/ConvergenceTest.h,v $
00024                                                                         
00025                                                                         
00026 #ifndef ConvergenceTest_h
00027 #define ConvergenceTest_h
00028 
00029 // File: ~/convergenceTest/ConvergenceTest.h
00030 //
00031 // Written: fmk 
00032 // Date: 09/98
00033 // Revised:
00034 //
00035 // Purpose: This file contains the class definition for ConvergenceTest,
00036 // which is an abstract class. Objects of concrete subclasses can be used 
00037 // to test the convergence of an algorithm. 
00038 
00039 #include <MovableObject.h>
00040 #include <Vector.h>
00041 #include <bool.h>
00042 
00043 #include <EquiSolnAlgo.h>
00044 
00045 
00055 class ConvergenceTest: public MovableObject
00056 {
00057   public:
00059     ConvergenceTest(int classTag); 
00063     virtual ~ConvergenceTest();
00064 
00065 
00067     virtual ConvergenceTest *getCopy( int iterations ) = 0 ;
00068 
00069 
00071     virtual int setEquiSolnAlgo(EquiSolnAlgo &theAlgorithm) =0;
00073     virtual int start(void) =0;
00075     virtual int test(void) = 0;
00076     
00078     virtual int getNumTests(void) =0;    
00080     virtual int getMaxNumTests(void) =0;        
00082     virtual double getRatioNumToMax(void) =0;            
00084     virtual const Vector &getNorms(void) =0;
00085     
00086     
00087   protected:
00088 
00089   private:
00090 };
00091 
00092 
00093 #endif
00094 
Copyright Contact Us