fei_EqnComm.hpp

00001 /*--------------------------------------------------------------------*/
00002 /*    Copyright 2007 Sandia Corporation.                              */
00003 /*    Under the terms of Contract DE-AC04-94AL85000, there is a       */
00004 /*    non-exclusive license for use of this work by or on behalf      */
00005 /*    of the U.S. Government.  Export of this program may require     */
00006 /*    a license from the United States Government.                    */
00007 /*--------------------------------------------------------------------*/
00008 
00009 #ifndef _fei_EqnComm_hpp_
00010 #define _fei_EqnComm_hpp_
00011 
00012 #include <fei_macros.hpp>
00013 #include <fei_fwd.hpp>
00014 #include <fei_mpi.h>
00015 
00016 namespace fei {
00017 class EqnComm {
00018  public:
00020   EqnComm(MPI_Comm comm, int numLocalEqns);
00021 
00023   virtual ~EqnComm();
00024 
00025   const std::vector<int>& getGlobalOffsets() const;
00026 
00027   int getOwnerProc(int eqn) const;
00028 
00029  private:
00030   MPI_Comm comm_;
00031   std::vector<int> globalOffsets_;
00032 };//class EqnComm
00033 }//namespace fei
00034 #endif
00035 

Generated on Wed May 12 21:30:41 2010 for FEI by  doxygen 1.4.7