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

ProfileSPDLinSOE.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.1.1.1 $
00022 // $Date: 2000/09/15 08:23:30 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/system_of_eqn/linearSOE/profileSPD/ProfileSPDLinSOE.h,v $
00024                                                                         
00025                                                                         
00026 // File: ~/system_of_eqn/linearSOE/profileSPD/ProfileSPDLinSOE.h
00027 //
00028 // Written: fmk 
00029 // Created: Febuary 1997
00030 // Revision: A
00031 //
00032 // Description: This file contains the class definition for ProfileSPDLinSOE
00033 // ProfileSPDLinSOE is a subclass of LinearSOE. It uses the LAPACK Upper storage
00034 // scheme to store the components of the A matrix.
00035 
00036 // What: "@(#) ProfileSPDLinSOE.h, revA"
00037 
00038 #ifndef ProfileSPDLinSOE_h
00039 #define ProfileSPDLinSOE_h
00040 
00041 #include <LinearSOE.h>
00042 #include <Vector.h>
00043 #include <ProfileSPDLinSolver.h>
00044 
00246 class ProfileSPDLinSOE : public LinearSOE
00247 {
00248   public:
00250     ProfileSPDLinSOE(ProfileSPDLinSolver &theSolver);    
00251 
00253     ProfileSPDLinSOE(int N, int *iLoc, 
00254        ProfileSPDLinSolver &theSolver);    
00255 
00257     ~ProfileSPDLinSOE();
00258 
00260     int getNumEqn(void) const;
00262     int setSize(Graph &theGraph);
00264     int addA(const Matrix &, const ID &, double fact = 1.0);
00266     int addB(const Vector &, const ID &, double fact = 1.0);    
00268     int setB(const Vector &, double fact = 1.0);        
00269     
00271     void zeroA(void);
00273     void zeroB(void);
00274 
00276     void setX(int loc, double value);        
00277 
00278     
00280     const Vector &getX(void);
00282     const Vector &getB(void);
00284     double normRHS(void);
00285 
00287     int setProfileSPDSolver(ProfileSPDLinSolver &newSolver);    
00288     
00290     int sendSelf(int commitTag, Channel &theChannel);
00292     int recvSelf(int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker);    
00293 
00295     friend #include <ProfileSPDLinSolver.h>    
00296     friend #include <ProfileSPDLinDirectSolver.h>
00297     friend #include <ProfileSPDLinDirectBlockSolver.h>
00298     friend #include <ProfileSPDLinDirectThreadSolver.h>    
00299     friend #include <ProfileSPDLinDirectSkypackSolver.h>    
00300     friend #include <ProfileSPDLinSubstrSolver.h>
00301     friend #include <ProfileSPDLinSubstrThreadSolver.h>
00302     
00303   protected:
00304     
00305   private:
00306     int size, profileSize;    
00308     double *A, *B, *X;
00310     Vector *vectX;
00312     Vector *vectB;
00314     int *iDiagLoc;
00316     int Asize, Bsize;
00318     bool isAfactored, isAcondensed;
00320     int numInt;
00321 };
00322 
00323 
00324 #endif
00325 
00326 
00327 
Copyright Contact Us