BandGenLinSOE.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: 2005/12/06 21:56:41 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/system_of_eqn/linearSOE/bandGEN/BandGenLinSOE.h,v $
00024                                                                         
00025                                                                         
00026 #ifndef BandGenLinSOE_h
00027 #define BandGenLinSOE_h
00028 
00029 // Written: fmk 
00030 //
00031 // Description: This file contains the class definition for BandGenLinSOE
00032 // BandGenLinSOE is a subclass of LinearSOE. It uses the LAPACK storage
00033 // scheme to store the components of the A matrix, which is a banded 
00034 // unsymmetric matrix.
00035 //
00036 // What: "@(#) BandGenLinSOE.h, revA"
00037 
00038 
00039 #include <LinearSOE.h>
00040 #include <Vector.h>
00041 
00042 class BandGenLinSolver;
00043 
00044 class BandGenLinSOE : public LinearSOE
00045 {
00046   public:
00047     BandGenLinSOE(BandGenLinSolver &theSolver);
00048     BandGenLinSOE(BandGenLinSolver &theSolver, int classTag);
00049 
00050     BandGenLinSOE(int N, int numSuperDiagonals, int numSubDiagonal,
00051                   BandGenLinSolver &theSolver);        
00052     
00053     virtual ~BandGenLinSOE();
00054 
00055     virtual int getNumEqn(void) const;
00056     virtual int setSize(Graph &theGraph);
00057     
00058     virtual int addA(const Matrix &, const ID &, double fact = 1.0);
00059     virtual int addB(const Vector &, const ID &, double fact = 1.0);    
00060     virtual int setB(const Vector &, double fact = 1.0);        
00061 
00062     virtual void zeroA(void);
00063     virtual void zeroB(void);
00064 
00065     virtual const Vector &getX(void);
00066     virtual const Vector &getB(void);
00067     virtual double normRHS(void);
00068 
00069     virtual void setX(int loc, double value);    
00070     virtual void setX(const Vector &x);    
00071 
00072     virtual int setBandGenSolver(BandGenLinSolver &newSolver);    
00073 
00074     virtual int sendSelf(int commitTag, Channel &theChannel);
00075     virtual int recvSelf(int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker);    
00076     friend class BandGenLinLapackSolver;
00077 
00078   protected:
00079     int size, numSuperD, numSubD;    
00080     double *A, *B, *X;
00081     Vector *vectX;
00082     Vector *vectB;
00083     int Asize, Bsize;
00084     bool factored;
00085     
00086   private:
00087 };
00088 
00089 
00090 #endif
00091 

Generated on Mon Oct 23 15:05:28 2006 for OpenSees by doxygen 1.5.0