/[escript]/branches/split/esysUtils/src/Esys_MPI.h
ViewVC logotype

Diff of /branches/split/esysUtils/src/Esys_MPI.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4772 by jfenwick, Mon Mar 17 03:31:28 2014 UTC revision 4773 by jfenwick, Wed Mar 19 06:19:42 2014 UTC
# Line 81  index_t Esys_MPIInfo_mod(index_t n, inde Line 81  index_t Esys_MPIInfo_mod(index_t n, inde
81    
82  namespace esysUtils {  namespace esysUtils {
83    
84    /** \brief tag reserved for use by SubWorld code
85        this value should be higher than the modulus used in JMPI_::setCounter, apart from that, its value
86        is not particularly significant.
87    */
88    ESYSUTILS_DLL_API
89    inline const int getSubWorldTag()  
90    {
91        return ('S'<< 24) + ('u' << 16) + ('b' << 8) + 'W';  
92    }
93      
94  class JMPI_;  class JMPI_;
95    
96  typedef boost::shared_ptr<JMPI_> JMPI;  typedef boost::shared_ptr<JMPI_> JMPI;
# Line 101  public: Line 111  public:
111      void incCounter(int i)      void incCounter(int i)
112      {      {
113      msg_tag_counter+=i;      msg_tag_counter+=i;
114      msg_tag_counter%=1010201;      msg_tag_counter%=1010201;       // there is no particular significance here other than being 7 digits
115      }      }                   // and prime (because why not). It just needs to be big.
116            
117      void setCounter(int i)      void setCounter(int i)
118      {      {

Legend:
Removed from v.4772  
changed lines
  Added in v.4773

  ViewVC Help
Powered by ViewVC 1.1.26