DistributedBandSPDLinSOE.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:04:33 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/system_of_eqn/linearSOE/bandSPD/DistributedBandSPDLinSOE.h,v $
00024                                                                         
00025 #ifndef DistributedBandSPDLinSOE_h
00026 #define DistributedBandSPDLinSOE_h
00027 
00028 // Written: fmk 
00029 // Description: This file contains the class definition for DistributedBandSPDLinSOE
00030 // DistributedBandSPDLinSOE 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: "@(#) DistributedBandSPDLinSOE.h, revA"
00035 
00036 
00037 #include <BandSPDLinSOE.h>
00038 #include <Vector.h>
00039 
00040 class DistributedBandSPDLinSolver;
00041 
00042 class DistributedBandSPDLinSOE : public BandSPDLinSOE
00043 {
00044   public:
00045     DistributedBandSPDLinSOE(BandSPDLinSolver &theSolver);
00046     
00047     ~DistributedBandSPDLinSOE();
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 BandSPDLinLapackSolver;
00061 
00062     int setProcessID(int processTag);
00063     int setChannels(int numChannels, Channel **theChannels);
00064 
00065   protected:
00066     
00067   private:
00068     int processID;
00069     int numChannels;
00070     Channel **theChannels;
00071     ID **localCol;
00072 
00073     double *workArea;
00074     int sizeWork;
00075     Vector *myVectB;
00076     double *myB;
00077 };
00078 
00079 
00080 #endif
00081 

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