FullGenLinSOE.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.2 $
00022 // $Date: 2001/12/07 00:17:52 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/system_of_eqn/linearSOE/fullGEN/FullGenLinSOE.h,v $
00024                                                                         
00025                                                                         
00026 #ifndef FullGenLinSOE_h
00027 #define FullGenLinSOE_h
00028 
00029 // File: ~/system_of_eqn/linearSOE/fullGEN/FullGenLinSOE.h
00030 //
00031 // Written: fmk 
00032 // Created: 02/97
00033 // Revision: A
00034 //
00035 // Description: This file contains the class definition for FullGenLinSOE
00036 // FullGenLinSOE is a subclass of LinearSOE. It stores all the components
00037 // of the linear system of equation in 1d arrays.
00038 //
00039 // What: "@(#) FullGenLinSOE.h, revA"
00040 
00041 #include <LinearSOE.h>
00042 #include <Vector.h>
00043 
00044 class FullGenLinSolver;
00045 
00046 class FullGenLinSOE : public LinearSOE
00047 {
00048   public:
00049     FullGenLinSOE(FullGenLinSolver &theSolver);        
00050     FullGenLinSOE(int N, FullGenLinSolver &theSolver);        
00051 
00052     ~FullGenLinSOE();
00053 
00054     int getNumEqn(void) const;
00055     int setSize(Graph &theGraph);
00056     int addA(const Matrix &, const ID &, double fact = 1.0);
00057     int addB(const Vector &, const ID &, double fact = 1.0);    
00058     int setB(const Vector &, double fact = 1.0);        
00059     
00060     void zeroA(void);
00061     void zeroB(void);
00062     
00063     const Vector &getX(void);
00064     const Vector &getB(void);    
00065     double normRHS(void);
00066 
00067     void setX(int loc, double value);        
00068     void setX(const Vector &x);        
00069 
00070     int setFullGenSolver(FullGenLinSolver &newSolver);    
00071 
00072     friend class FullGenLinLapackSolver;    
00073 
00074     int sendSelf(int commitTag, Channel &theChannel);
00075     int recvSelf(int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker);
00076 
00077   protected:
00078     
00079   private:
00080     int size;    
00081     double *A, *B, *X;
00082     Vector *vectX;
00083     Vector *vectB;    
00084     int Asize, Bsize;
00085     bool factored;
00086 };
00087 
00088 
00089 #endif
00090 

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