DistributedSparseGenColLinSOE.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:20:18 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/system_of_eqn/linearSOE/sparseGEN/DistributedSparseGenColLinSOE.h,v $
00024                                                                         
00025 #ifndef DistributedSparseGenColLinSOE_h
00026 #define DistributedSparseGenColLinSOE_h
00027 
00028 // Written: fmk 
00029 // Description: This file contains the class definition for DistributedSparseGenColLinSOE
00030 // DistributedSparseGenColLinSOE is a subclass of LinearSOE. It uses the sparse column
00031 // storage scheme. It collects all contributions from the matrices and assembles them onto 
00032 // P0 (not really a distributed SOE .. but until i get a solver that will work with a distributed
00033 // col storage scheme this is what will have to stick with).
00034 //
00035 // What: "@(#) DistributedSparseGenColLinSOE.h, revA"
00036 
00037 
00038 #include <SparseGenColLinSOE.h>
00039 #include <Vector.h>
00040 
00041 class DistributedSparseGenColLinSolver;
00042 
00043 class DistributedSparseGenColLinSOE : public SparseGenColLinSOE
00044 {
00045   public:
00046     DistributedSparseGenColLinSOE(SparseGenColLinSolver &theSolver);
00047     
00048     ~DistributedSparseGenColLinSOE();
00049 
00050     // these methods need to be rewritten
00051     int setSize(Graph &theGraph);
00052     int addA(const Matrix &, const ID &, double fact = 1.0);
00053     int addB(const Vector &, const ID &, double fact = 1.0);    
00054     int setB(const Vector &, double fact = 1.0);            
00055     const Vector &getB(void);
00056     void zeroB(void);
00057     int solve(void);
00058 
00059 
00060     int sendSelf(int commitTag, Channel &theChannel);
00061     int recvSelf(int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker);    
00062     friend class SuperLU;    
00063     friend class ThreadedSuperLU;        
00064     friend class DistributedSuperLU;        
00065 
00066     int setProcessID(int processTag);
00067     int setChannels(int numChannels, Channel **theChannels);
00068 
00069   protected:
00070     
00071   private:
00072     int processID;
00073     int numChannels;
00074     Channel **theChannels;
00075     ID **localCol;
00076 
00077     double *workArea;
00078     int sizeWork;
00079     double *myB;
00080     Vector *myVectB;
00081 };
00082 
00083 
00084 #endif
00085 

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