DistributedProfileSPDLinSOE.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 $
00022 // $Date: 2005/12/06 22:07:52 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/system_of_eqn/linearSOE/profileSPD/DistributedProfileSPDLinSOE.h,v $
00024                                                                         
00025 #ifndef DistributedProfileSPDLinSOE_h
00026 #define DistributedProfileSPDLinSOE_h
00027 
00028 // Written: fmk 
00029 // Description: This file contains the class definition for DistributedProfileSPDLinSOE
00030 // DistributedProfileSPDLinSOE is a subclass of LinearSOE. It uses the LAPACK storage
00031 // scheme to store the components of the A matrix, which is a banded 
00032 // unsymmetric matrix.
00033 //
00034 // What: "@(#) DistributedProfileSPDLinSOE.h, revA"
00035 
00036 
00037 #include <ProfileSPDLinSOE.h>
00038 #include <Vector.h>
00039 
00040 class DistributedProfileSPDLinSolver;
00041 
00042 class DistributedProfileSPDLinSOE : public ProfileSPDLinSOE
00043 {
00044   public:
00045     DistributedProfileSPDLinSOE(ProfileSPDLinSolver &theSolver);
00046     
00047     ~DistributedProfileSPDLinSOE();
00048 
00049     // these methods need to be rewritten
00050     int addA(const Matrix &, const ID &, double fact = 1.0);
00051     int addB(const Vector &, const ID &, double fact = 1.0);    
00052     int setB(const Vector &, double fact = 1.0);            
00053     void zeroB(void);
00054     int setSize(Graph &theGraph);
00055     int solve(void);
00056     const Vector &getB(void);
00057 
00058     int sendSelf(int commitTag, Channel &theChannel);
00059     int recvSelf(int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker);    
00060     friend class ProfileSPDLinSolver;    
00061     friend class ProfileSPDLinDirectSolver;
00062     friend class ProfileSPDLinDirectBlockSolver;
00063     friend class ProfileSPDLinDirectThreadSolver;    
00064     friend class ProfileSPDLinDirectSkypackSolver;    
00065     friend class ProfileSPDLinSubstrSolver;
00066     friend class ProfileSPDLinSubstrThreadSolver;
00067 
00068     int setProcessID(int processTag);
00069     int setChannels(int numChannels, Channel **theChannels);
00070 
00071   protected:
00072     
00073   private:
00074     int processID;
00075     int numChannels;
00076     Channel **theChannels;
00077     ID **localCol;
00078     ID *sizeLocal;
00079 
00080     double *workArea;
00081     int sizeWork;
00082     Vector *myVectB;
00083     double *myB;
00084 };
00085 
00086 
00087 #endif
00088 

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