MumpsParallelSolver.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: 2006/03/15 00:26:02 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/system_of_eqn/linearSOE/mumps/MumpsParallelSolver.h,v $
00024                                                                         
00025                                                                         
00026 #ifndef MumpsParallelSolver_h
00027 #define MumpsParallelSolver_h
00028 
00029 // Written: fmk 
00030 // Created: 02/06
00031 //
00032 // Description: This file contains the class definition for Mumps.
00033 // A Mumps object can be constructed to solve a MumpsSOE. It obtains 
00034 // the solution by making calls on the the Mumps library, which is based 
00035 // on public domain software developed during the Esprit IV European project 
00036 // PARASOL (1996-1999) by CERFACS, ENSEEIHT-IRIT and RAL. Since this first 
00037 // public domain version in 1999, the developments are supported by CERFACS, 
00038 // ENSEEIHT-IRIT, and INRIA Rhone-Alpes. 
00039 // Main contributors to MUMPS are Patrick Amestoy, Iain Duff, Abdou Guermouche,
00040 // Jacko Koster, Jean-Yves L'Excellent, and Stephane Pralet.
00041 
00042 // Up-to-date copies of the MUMPS package can be obtained from the Web pages 
00043 // http://www.enseeiht.fr/apo/MUMPS/ or http://graal.ens-lyon.fr/MUMPS
00044 
00045 // What: "@(#) Mumps.h, revA"
00046 
00047 #include <LinearSOESolver.h>
00048 extern "C" {
00049 #include <dmumps_c.h>
00050 }
00051 
00052 class MumpsParallelSOE;
00053 
00054 class MumpsParallelSolver : public LinearSOESolver
00055 {
00056   public:
00057   MumpsParallelSolver();
00058   MumpsParallelSolver(int MPI_COMM,
00059                       int ICNTL7 =7);
00060 
00061   virtual ~MumpsParallelSolver();
00062   
00063   int solve(void);
00064   int setSize(void);
00065   
00066   int sendSelf(int commitTag, Channel &theChannel);
00067   int recvSelf(int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker);    
00068 
00069   int setLinearSOE(MumpsParallelSOE &theSOE);
00070 
00071  protected:
00072 
00073  private:
00074   bool init;
00075   DMUMPS_STRUC_C id;
00076   MumpsParallelSOE *theMumpsSOE;
00077 
00078   int rank;
00079   int np;
00080 };
00081 
00082 #endif
00083 

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