Ignore:
Timestamp:
11/14/14 17:56:37 (10 years ago)
Author:
mhnguyen
Message:

Correct bug causing infinite run on multiple server and do some code clean

+) Correct a stupid typo which causes the bug
+) Add comments for class Contextclient
+) Remove some redundant codes

Test
+) On Curie
+) Connection mode: Attached: One and Multiple; Seperated: One and Multiple server
+) File mode: One and multiple file
+) All tests passed (Will it make the trusting board become red :)? )

File:
1 edited

Legend:

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

    r511 r512  
    77namespace xios 
    88{ 
     9  /*! 
     10  \class CXios 
     11  */ 
    912  class CXios 
    1013  { 
    11      public: 
    12  
    13      static string rootFile ; 
    14      static string xiosCodeId ; 
    15      static string clientFile; 
    16      static string serverFile; 
    17  
     14    public: 
    1815     static void initialize(void) ; 
    19  
    20  
    2116     static void initClientSide(const string & codeId, MPI_Comm& localComm, MPI_Comm& returnComm) ; 
    2217     static void initServerSide(void) ; 
     
    3025     static T getin(const string& id) ; 
    3126 
    32      static bool isClient ; 
    33      static bool isServer ; 
     27    public: 
     28     static string rootFile ; //!< Configuration filename 
     29     static string xiosCodeId ; //!< Identity for XIOS 
     30     static string clientFile; //!< Filename template for client 
     31     static string serverFile; //!< Filename template for server 
    3432 
    35      static MPI_Comm globalComm ; 
     33     static bool isClient ; //!< Check if xios is client 
     34     static bool isServer ; //!< Check if xios is server 
    3635 
    37      static bool printInfo2File; 
    38      static bool usingOasis ; 
    39      static bool usingServer ; 
    40      static size_t bufferSize ; 
    41      static size_t defaultBufferSize ; 
    42      static double bufferServerFactorSize ; 
    43      static double defaultBufferServerFactorSize ; 
    44      static bool isOptPerformance; 
     36     static MPI_Comm globalComm ; //!< Global communicator 
    4537 
    46      public: 
     38     static bool printInfo2File; //!< Printing out information into file 
     39     static bool usingOasis ; //!< Using Oasis 
     40     static bool usingServer ; //!< Using server (server mode) 
     41     static double bufferServerFactorSize ; //!< Factor helps tune buffer size 
     42     static double defaultBufferServerFactorSize ; //!< Default factor value 
     43     static bool isOptPerformance; //!< Check if buffer size is for performance (as large as possible) 
     44 
     45    public: 
    4746     //! Setting xios to use server mode 
    4847     static void setUsingServer(); 
     
    5453     static bool isServerSide; 
    5554 
     55     //! Initialize server (if any) 
    5656     static  void initServer(); 
    5757 
    58      private: 
     58    private: 
     59      //! Parse only Xios part of configuration file 
    5960      static void parseXiosConfig(); 
    60  
    6161  } ; 
    62  
    6362} 
    6463 
    6564//#include "cxios_impl.hpp" 
    66  
    67  
    68  
    69  
    70  
    71  
    72  
    73  
    74  
    75 #endif 
     65#endif // __XIOS_HPP__ 
Note: See TracChangeset for help on using the changeset viewer.