Epetra_MpiCommData.h

Go to the documentation of this file.
00001 
00002 //@HEADER
00003 /*
00004 ************************************************************************
00005 
00006               Epetra: Linear Algebra Services Package 
00007                 Copyright (2001) Sandia Corporation
00008 
00009 Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
00010 license for use of this work by or on behalf of the U.S. Government.
00011 
00012 This library is free software; you can redistribute it and/or modify
00013 it under the terms of the GNU Lesser General Public License as
00014 published by the Free Software Foundation; either version 2.1 of the
00015 License, or (at your option) any later version.
00016  
00017 This library is distributed in the hope that it will be useful, but
00018 WITHOUT ANY WARRANTY; without even the implied warranty of
00019 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00020 Lesser General Public License for more details.
00021  
00022 You should have received a copy of the GNU Lesser General Public
00023 License along with this library; if not, write to the Free Software
00024 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
00025 USA
00026 Questions? Contact Michael A. Heroux (maherou@sandia.gov) 
00027 
00028 ************************************************************************
00029 */
00030 //@HEADER
00031 
00032 #ifndef EPETRA_MPICOMMDATA_H
00033 #define EPETRA_MPICOMMDATA_H
00034 
00035 #include "Epetra_Data.h"
00036 #include <mpi.h>
00037 
00039 
00044 class Epetra_MpiCommData : public Epetra_Data {
00045   friend class Epetra_MpiComm;
00046  private:
00048 
00049 
00051   Epetra_MpiCommData(MPI_Comm & Comm);
00052 
00054   ~Epetra_MpiCommData();
00055 
00057 
00058   MPI_Comm Comm_; 
00059   int rank_;
00060   int size_;
00061   enum {minTag_= 24050};
00062   enum {maxTag_= 24099};
00063   // Some day, when the Microsoft 6.0 C++ compiler disappears, we can use ANSI/ISO standard
00064   // declarations for minTag_ and maxTag_
00065   //static const int minTag_= 24050;
00066   //static const int maxTag_= 24099;
00067 
00068   mutable int curTag_;
00069 
00070   // these are intentionally declared but not defined. See Epetra Developer's Guide for details.
00071   Epetra_MpiCommData(const Epetra_MpiCommData & CommData);
00072   Epetra_MpiCommData& operator=(const Epetra_MpiCommData & CommData);
00073   
00074 };
00075 #endif /* EPETRA_MPICOMMDATA_H */

Generated on Wed May 12 21:41:05 2010 for Epetra Package Browser (Single Doxygen Collection) by  doxygen 1.4.7