Changeset 1328 for XIOS/dev/branch_openmp/src/cxios.hpp
- Timestamp:
- 11/15/17 12:14:34 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_openmp/src/cxios.hpp
r1134 r1328 5 5 #include "mpi.hpp" 6 6 #include "registry.hpp" 7 #include "log.hpp"8 7 9 8 namespace xios … … 15 14 { 16 15 public: 17 18 19 20 21 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) ; 22 21 23 24 22 template <typename T> 23 static T getin(const string& id,const T& defaultValue) ; 25 24 26 27 25 template <typename T> 26 static T getin(const string& id) ; 28 27 29 28 public: 30 static const string rootFile; //!< Configuration filename31 static conststring xiosCodeId ; //!< Identity for XIOS32 static conststring clientFile; //!< Filename template for client33 static conststring serverFile; //!< Filename template for server29 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 34 33 35 static bool isClient ; //!< Check if xios is client 36 static bool isServer ; //!< Check if xios is server 37 #pragma omp threadprivate(isClient, isServer) 34 static bool isClient ; //!< Check if xios is client 35 static bool isServer ; //!< Check if xios is server 38 36 39 static MPI_Comm globalComm ; //!< Global communicator 40 #pragma omp threadprivate(globalComm) 37 static ep_lib::MPI_Comm globalComm ; //!< Global communicator 41 38 42 static bool printLogs2Files; //!< Printing out logs into files 43 static bool usingOasis ; //!< Using Oasis 44 static bool usingServer ; //!< Using server (server mode) 45 static double bufferSizeFactor; //!< Factor used to tune the buffer size 46 static const double defaultBufferSizeFactor; //!< Default factor value 47 static StdSize minBufferSize; //!< Minimum buffer size 48 static bool isOptPerformance; //!< Check if buffer size is for performance (as large as possible) 49 #pragma omp threadprivate(printLogs2Files, usingOasis, usingServer, bufferSizeFactor, minBufferSize, isOptPerformance) 50 51 static CRegistry* globalRegistry ; //!< global registry which is wrote by the root process of the servers 52 static double recvFieldTimeout; 53 #pragma omp threadprivate(recvFieldTimeout) 54 55 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 48 56 49 public: 57 50 //! Setting xios to use server mode
Note: See TracChangeset
for help on using the changeset viewer.