Ignore:
Timestamp:
09/26/14 14:52:04 (7 years ago)
Author:
mhnguyen
Message:

Implementing print output in seperate files

+) Add an option to write information into standard output or into files,
each of which is created by a process
+) Add a new file for global data (constant, value macro, etc)
+) Do a minor change in how to generate doxygen

Test
+) On Curie, with two modes: only client (connected) and client-server
+) All tests passed, each client prints out its info in a seperate file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/server.hpp

    r382 r490  
    1111    { 
    1212       public: 
    13         
     13 
    1414       static void initialize(void) ; 
    1515       static void finalize(void) ; 
     
    2222       static void listenRootFinalize(void) ; 
    2323       static void registerContext(void* buff,int count, int leaderRank=0) ; 
    24         
     24 
    2525       static MPI_Comm intraComm ; 
    2626       static list<MPI_Comm> interComm ; 
     
    3131         int leaderRank ; 
    3232       } ; 
    33         
    34       static bool isRoot ; 
    35       static int rank ; 
    36       static map<string,CContext*> contextList ; 
    37       static bool finished ; 
    38       static bool is_MPI_Initialized ; 
     33 
     34       static bool isRoot ; 
     35 
     36       static map<string,CContext*> contextList ; 
     37       static bool finished ; 
     38       static bool is_MPI_Initialized ; 
     39 
     40       public: 
     41         //! Get rank of the current process 
     42         static int getRank(); 
     43 
     44        //! Print Information into a file 
     45        static void openInfoStream(const StdString& fileName); 
     46 
     47        //! Print information to standard output 
     48        static void openInfoStream(); 
     49 
     50        //! Close Info stream (closing file) 
     51        static void closeInfoStream(); 
     52 
     53       private: 
     54        static StdOFStream m_infoStream; 
     55        static int rank ; 
    3956    } ; 
    4057} 
Note: See TracChangeset for help on using the changeset viewer.