Ignore:
Timestamp:
09/26/14 14:52:04 (10 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/cxios.hpp

    r382 r490  
    1010  { 
    1111     public: 
    12       
     12 
    1313     static string rootFile ; 
    1414     static string xiosCodeId ; 
    15       
     15     static string infoFile; 
     16 
    1617     static void initialize(void) ; 
    17        
    18     
     18 
     19 
    1920     static void initClientSide(const string & codeId, MPI_Comm& localComm, MPI_Comm& returnComm) ; 
    2021     static void initServerSide(void) ; 
    2122     static void clientFinalize(void) ; 
    2223     static void parseFile(const string& filename) ; 
    23     
     24 
    2425     template <typename T> 
    2526     static T getin(const string& id,const T& defaultValue) ; 
    26       
     27 
    2728     template <typename T> 
    2829     static T getin(const string& id) ; 
     30 
     31//     static void openFileInfo(const StdString& fileName); 
     32//     static void closeFileInfo(); 
    2933 
    3034     static bool isClient ; 
    3135     static bool isServer ; 
    3236 
    33      static MPI_Comm globalComm ;  
    34       
     37     static MPI_Comm globalComm ; 
     38 
     39     static bool printInfo2File; 
    3540     static bool usingOasis ; 
    36      static bool usingServer ;    
     41     static bool usingServer ; 
    3742     static size_t bufferSize ; 
    3843     static size_t defaultBufferSize ; 
    3944     static double bufferServerFactorSize ; 
    4045     static double defaultBufferServerFactorSize ; 
    41          
     46 
     47     private: 
     48//     static StdOFStream infoFileStream_; 
     49 
    4250  } ; 
    4351 
Note: See TracChangeset for help on using the changeset viewer.