ActorPetscSOE.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:29 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/system_of_eqn/linearSOE/petsc/ActorPetscSOE.h,v $
00024                                                                         
00025                                                                         
00026 // File: ~/system_of_eqn/linearSOE/petsc/ActorPetscSOE.h
00027 //
00028 // Written: fmk & om
00029 // Created: 7/98
00030 // Revision: A
00031 //
00032 // Description: This file contains the class definition for ActorPetscSOE
00033 // ActorPetscSOE is a subclass of LinearSOE. It uses the LAPACK storage
00034 // scheme to store the components of the A matrix, which is a full matrix.
00035 
00036 
00037 // What: "@(#) ActorPetscSOE.h, revA"
00038 
00039 #ifndef ActorPetscSOE_h
00040 #define ActorPetscSOE_h
00041 
00042 #include <LinearSOE.h>
00043 #include <Vector.h>
00044 
00045 // extern "C" {
00046 #include <petsc.h>
00047 // }
00048 
00049 class PetscSolver;
00050 class PetscSOE;
00051 
00052 class ActorPetscSOE
00053 {
00054   public:
00055     ActorPetscSOE(PetscSolver &theSolver, int blockSize);     
00056     
00057     ~ActorPetscSOE();
00058     int run(void);
00059     
00060   protected:
00061     
00062   private:
00063     MPI_Comm theComm;
00064     PetscSOE *theSOE;  // the local portion of the SOE
00065     PetscSolver *theSolver; // created locally via data from process 0
00066     int myRank;                          
00067     int recvData[3];                             
00068     void *recvBuffer;
00069     int numProcessors;
00070 };
00071 
00072 
00073 #endif
00074 
00075 
00076 

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