Ignore:
Timestamp:
03/22/18 10:43:20 (6 years ago)
Author:
yushan
Message:

branch_openmp merged with XIOS_DEV_CMIP6@1459

File:
1 edited

Legend:

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

    r1331 r1460  
    2727 
    2828    public: 
    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) 
     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     static const string serverPrmFile;  //!< Filename template for primary server in case of two server levels 
     34     static const string serverSndFile;  //!< Filename template for secondary server in case of two server levels 
    3435 
    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) 
     36     static bool isClient ; //!< Check if xios is client 
     37     #pragma omp threadprivate(isClient) 
     38     static bool isServer ; //!< Check if xios is server 
     39     #pragma omp threadprivate(isServer) 
    3940 
    40       static ep_lib::MPI_Comm globalComm ; //!< Global communicator 
    41       #pragma omp threadprivate(globalComm) 
     41     static ep_lib::MPI_Comm globalComm ; //!< Global communicator 
     42     #pragma omp threadprivate(globalComm) 
    4243 
    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) 
     44     static bool printLogs2Files; //!< Printing out logs into files 
     45     #pragma omp threadprivate(printLogs2Files) 
     46     static bool usingOasis ;     //!< Using Oasis 
     47     #pragma omp threadprivate(usingOasis) 
     48     static bool usingServer ;    //!< Using server (server mode) 
     49     #pragma omp threadprivate(usingServer) 
     50     static bool usingServer2 ;   //!< Using secondary server (server mode). IMPORTANT: Use this variable ONLY in CServer::initialize(). 
     51     #pragma omp threadprivate(usingServer2) 
     52     static int ratioServer2 ;    //!< Percentage of server processors dedicated to secondary server 
     53     #pragma omp threadprivate(ratioServer2) 
     54     static int nbPoolsServer2 ;  //!< Number of pools created on the secondary server 
     55     #pragma omp threadprivate(nbPoolsServer2) 
     56     static double bufferSizeFactor; //!< Factor used to tune the buffer size 
     57     #pragma omp threadprivate(bufferSizeFactor) 
     58     static const double defaultBufferSizeFactor; //!< Default factor value 
     59     static StdSize minBufferSize; //!< Minimum buffer size 
     60     #pragma omp threadprivate(minBufferSize) 
     61     static StdSize maxBufferSize; //!< Maximum buffer size 
     62     #pragma omp threadprivate(minBufferSize) 
     63     static bool isOptPerformance; //!< Check if buffer size is for performance (as large as possible) 
     64     #pragma omp threadprivate(isOptPerformance) 
     65     static CRegistry* globalRegistry ; //!< global registry which is wrote by the root process of the servers 
     66     #pragma omp threadprivate(globalRegistry) 
     67     static double recvFieldTimeout; //!< Time to wait for data before issuing an error when receiving a field 
     68     #pragma omp threadprivate(recvFieldTimeout) 
     69     static bool checkEventSync; //!< For debuuging, check if event are coherent and synchrone on client side 
    6070 
    6171    public: 
    62       //! Setting xios to use server mode 
    63       static void setUsingServer(); 
     72     //! Setting xios to use server mode 
     73     static void setUsingServer(); 
    6474 
    65       //! Setting xios NOT to use server mode 
    66       static void setNotUsingServer(); 
     75     //! Setting xios NOT to use server mode 
     76     static void setNotUsingServer(); 
    6777 
    68       //! Initialize server (if any) 
    69       static  void initServer(); 
     78     //! Initialize server (if any) 
     79     static  void initServer(); 
    7080 
    7181    private: 
Note: See TracChangeset for help on using the changeset viewer.