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.4 $
00022 // $Date: 2005/12/15 00:19:28 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/convergenceTest/ConvergenceTest.h,v $
00024                                                                         
00025                                                                         
00026 #ifndef ConvergenceTest_h
00027 #define ConvergenceTest_h
00028 
00029 // Written: fmk 
00030 // Date: 09/98
00031 // Revised:
00032 //
00033 // Purpose: This file contains the class definition for ConvergenceTest,
00034 // which is an abstract class. Objects of concrete subclasses can be used 
00035 // to test the convergence of an algorithm. 
00036 
00037 #include <MovableObject.h>
00038 #include <Vector.h>
00039 #include <bool.h>
00040 
00041 class EquiSolnAlgo;
00042 
00043 
00044 class ConvergenceTest: public MovableObject
00045 {
00046   public:
00047     // constructors and destructor
00048     ConvergenceTest(int classTag);      
00049     virtual ~ConvergenceTest();
00050 
00051     virtual ConvergenceTest *getCopy( int iterations ) = 0 ;
00052 
00053     virtual int setEquiSolnAlgo(EquiSolnAlgo &theAlgorithm) =0;
00054     virtual int start(void) =0;
00055     virtual int test(void) = 0;
00056     
00057     virtual int getNumTests(void) =0;    
00058     virtual int getMaxNumTests(void) =0;        
00059     virtual double getRatioNumToMax(void) =0;            
00060     virtual const Vector &getNorms(void) =0;
00061     
00062     
00063   protected:
00064 
00065   private:
00066 };
00067 
00068 
00069 #endif
00070 

Generated on Mon Oct 23 15:04:59 2006 for OpenSees by doxygen 1.5.0