Ignore:
Timestamp:
05/16/17 17:54:30 (7 years ago)
Author:
yushan
Message:

branch merged with trunk r1130

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_yushan_merged/src/client.hpp

    r655 r1134  
    1212        static void initialize(const string& codeId, MPI_Comm& localComm, MPI_Comm& returnComm); 
    1313        static void finalize(void); 
    14         static void registerContext(const string& id, MPI_Comm contextComm); 
     14        static void registerContext(const string& id, ep_lib::MPI_Comm contextComm); 
    1515 
    1616        static MPI_Comm intraComm; 
     17        #pragma omp threadprivate(intraComm) 
     18 
    1719        static MPI_Comm interComm; 
    18         static std::list<MPI_Comm> contextInterComms; 
     20        #pragma omp threadprivate(interComm) 
     21 
     22        //static std::list<MPI_Comm> contextInterComms; 
     23         
     24        static std::list<MPI_Comm> * contextInterComms_ptr; 
     25        #pragma omp threadprivate(contextInterComms_ptr) 
     26 
    1927        static int serverLeader; 
     28        #pragma omp threadprivate(serverLeader) 
     29 
    2030        static bool is_MPI_Initialized ; 
     31        #pragma omp threadprivate(is_MPI_Initialized) 
    2132 
    2233        //! Get rank of the current process 
     
    3950      protected: 
    4051        static int rank; 
     52        #pragma omp threadprivate(rank) 
     53 
    4154        static StdOFStream m_infoStream; 
     55        #pragma omp threadprivate(m_infoStream)  
     56 
    4257        static StdOFStream m_errorStream; 
     58        #pragma omp threadprivate(m_errorStream) 
     59 
     60        static StdOFStream array_infoStream[10]; 
    4361 
    4462        static void openStream(const StdString& fileName, const StdString& ext, std::filebuf* fb); 
Note: See TracChangeset for help on using the changeset viewer.