Changeset 548 for XIOS/branchs/xios-1.0/src/client.hpp
- Timestamp:
- 01/23/15 16:18:43 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/branchs/xios-1.0/src/client.hpp
r501 r548 9 9 class CClient 10 10 { 11 public: 11 public: 12 static void initialize(const string& codeId, MPI_Comm& localComm, MPI_Comm& returnComm); 13 static void finalize(void); 14 static void registerContext(const string& id, MPI_Comm contextComm); 12 15 13 static void initialize(const string& codeId,MPI_Comm& localComm,MPI_Comm& returnComm) ; 14 static void finalize(void) ; 15 static void registerContext(const string& id,MPI_Comm contextComm) ; 16 static MPI_Comm intraComm; 17 static MPI_Comm interComm; 18 static int serverLeader; 19 static bool is_MPI_Initialized ; 16 20 17 static MPI_Comm intraComm ; 18 static MPI_Comm interComm ; 19 static int serverLeader; 20 static bool is_MPI_Initialized ; 21 22 public: 21 //! Get rank of the current process 23 22 static int getRank(); 24 23 24 //! Open a file stream to write the info logs 25 25 static void openInfoStream(const StdString& fileName); 26 26 //! Write the info logs to standard output 27 27 static void openInfoStream(); 28 28 //! Close the info logs file if it opens 29 29 static void closeInfoStream(); 30 30 31 protected: 32 static int rank; 33 static StdOFStream m_infoStream; 31 //! Open a file stream to write the error log 32 static void openErrorStream(const StdString& fileName); 33 //! Write the error log to standard error output 34 static void openErrorStream(); 35 //! Close the error log file if it opens 36 static void closeErrorStream(); 34 37 38 protected: 39 static int rank; 40 static StdOFStream m_infoStream; 41 static StdOFStream m_errorStream; 35 42 36 } ; 43 static void openStream(const StdString& fileName, const StdString& ext, std::filebuf* fb); 44 }; 37 45 } 38 46
Note: See TracChangeset
for help on using the changeset viewer.