Ignore:
Timestamp:
11/16/17 16:20:41 (6 years ago)
Author:
yushan
Message:

dev_omp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_openmp/src/cxios.hpp

    r1328 r1331  
    1414  { 
    1515    public: 
    16      static void initialize(void) ; 
    17      static void initClientSide(const string & codeId, ep_lib::MPI_Comm& localComm, ep_lib::MPI_Comm& returnComm) ; 
    18      static void initServerSide(void) ; 
    19      static void clientFinalize(void) ; 
    20      static void parseFile(const string& filename) ; 
     16      static void initialize(void) ; 
     17      static void initClientSide(const string & codeId, ep_lib::MPI_Comm& localComm, ep_lib::MPI_Comm& returnComm) ; 
     18      static void initServerSide(void) ; 
     19      static void clientFinalize(void) ; 
     20      static void parseFile(const string& filename) ; 
    2121 
    22      template <typename T> 
    23      static T getin(const string& id,const T& defaultValue) ; 
     22      template <typename T> 
     23      static T getin(const string& id,const T& defaultValue) ; 
    2424 
    25      template <typename T> 
    26      static T getin(const string& id) ; 
     25      template <typename T> 
     26      static T getin(const string& id) ; 
    2727 
    2828    public: 
    29      static string rootFile ; //!< Configuration filename 
    30      static string xiosCodeId ; //!< Identity for XIOS 
    31      static string clientFile; //!< Filename template for client 
    32      static string serverFile; //!< Filename template for server 
     29      static const string rootFile ; //!< Configuration filename 
     30      static const string xiosCodeId ; //!< Identity for XIOS 
     31      static const string clientFile; //!< Filename template for client 
     32      static const string serverFile; //!< Filename template for server 
     33      //#pragma omp threadprivate(rootFile, xiosCodeId, clientFile, serverFile) 
    3334 
    34      static bool isClient ; //!< Check if xios is client 
    35      static bool isServer ; //!< Check if xios is server 
     35      static bool isClient ; //!< Check if xios is client 
     36      #pragma omp threadprivate(isClient) 
     37      static bool isServer ; //!< Check if xios is server 
     38      #pragma omp threadprivate(isServer) 
    3639 
    37      static ep_lib::MPI_Comm globalComm ; //!< Global communicator 
     40      static ep_lib::MPI_Comm globalComm ; //!< Global communicator 
     41      #pragma omp threadprivate(globalComm) 
    3842 
    39      static bool printLogs2Files; //!< Printing out logs into files 
    40      static bool usingOasis ; //!< Using Oasis 
    41      static bool usingServer ; //!< Using server (server mode) 
    42      static double bufferSizeFactor; //!< Factor used to tune the buffer size 
    43      static const double defaultBufferSizeFactor; //!< Default factor value 
    44      static StdSize minBufferSize; //!< Minimum buffer size 
    45      static bool isOptPerformance; //!< Check if buffer size is for performance (as large as possible) 
    46      static CRegistry* globalRegistry ; //!< global registry which is wrote by the root process of the servers 
    47      static double recvFieldTimeout; //!< Time to wait for data before issuing an error when receiving a field 
     43      static bool printLogs2Files; //!< Printing out logs into files 
     44      #pragma omp threadprivate(printLogs2Files) 
     45      static bool usingOasis ; //!< Using Oasis 
     46      #pragma omp threadprivate(usingOasis) 
     47      static bool usingServer ; //!< Using server (server mode) 
     48      #pragma omp threadprivate(usingServer) 
     49      static double bufferSizeFactor; //!< Factor used to tune the buffer size 
     50      #pragma omp threadprivate(bufferSizeFactor) 
     51      static const double defaultBufferSizeFactor; //!< Default factor value 
     52      static StdSize minBufferSize; //!< Minimum buffer size 
     53      #pragma omp threadprivate(minBufferSize) 
     54      static bool isOptPerformance; //!< Check if buffer size is for performance (as large as possible) 
     55      #pragma omp threadprivate(isOptPerformance) 
     56      static CRegistry* globalRegistry ; //!< global registry which is wrote by the root process of the servers 
     57      #pragma omp threadprivate(globalRegistry) 
     58      static double recvFieldTimeout; //!< Time to wait for data before issuing an error when receiving a field 
     59      #pragma omp threadprivate(recvFieldTimeout) 
    4860 
    4961    public: 
    50      //! Setting xios to use server mode 
    51      static void setUsingServer(); 
     62      //! Setting xios to use server mode 
     63      static void setUsingServer(); 
    5264 
    53      //! Setting xios NOT to use server mode 
    54      static void setNotUsingServer(); 
     65      //! Setting xios NOT to use server mode 
     66      static void setNotUsingServer(); 
    5567 
    56      //! Initialize server (if any) 
    57      static  void initServer(); 
     68      //! Initialize server (if any) 
     69      static  void initServer(); 
    5870 
    5971    private: 
Note: See TracChangeset for help on using the changeset viewer.