Changeset 512 for XIOS/trunk/src/cxios.cpp
- Timestamp:
- 11/14/14 17:56:37 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/cxios.cpp
r511 r512 23 23 bool CXios::usingOasis ; 24 24 bool CXios::usingServer = false; 25 size_t CXios::bufferSize ; 26 double CXios::bufferServerFactorSize=2 ; 27 size_t CXios::defaultBufferSize=1024*1024*100 ; // 100Mo 28 double CXios::defaultBufferServerFactorSize=2 ; 25 double CXios::bufferServerFactorSize=1.0 ; 26 double CXios::defaultBufferServerFactorSize=1.0 ; 29 27 bool CXios::printInfo2File; 30 28 bool CXios::isServerSide; 31 29 bool CXios::isOptPerformance = true; 32 30 31 //! Parse configuration file and create some objects from it 33 32 void CXios::initialize() 34 33 { … … 38 37 } 39 38 39 /*! 40 \brief Parse xios part of configuration file (.iodef.xml) 41 Both client and server need information returned from this function 42 */ 40 43 void CXios::parseXiosConfig() 41 44 { … … 43 46 usingServer=getin<bool>("using_server",false) ; 44 47 info.setLevel(getin<int>("info_level",0)) ; 45 report.setLevel(getin<int>("info_level", 0));48 report.setLevel(getin<int>("info_level",50)); 46 49 printInfo2File=getin<bool>("print_file",false); 47 bufferSize=getin<size_t>("buffer_size",defaultBufferSize) ; 50 48 51 StdString bufMemory("memory"); 49 52 StdString bufPerformance("performance"); … … 56 59 } 57 60 58 // bufferServerFactorSize=getin<double>("buffer_server_factor_size",defaultBufferServerFactorSize) ;59 61 bufferServerFactorSize=getin<double>("buffer_factor_size",defaultBufferServerFactorSize) ; 60 62 globalComm=MPI_COMM_WORLD ; 61 63 } 62 64 65 /*! 66 Initialize client 67 \param [in] codeId identity of context 68 \param [in] localComm local communicator 69 \param [in/out] returnComm communicator corresponding to group of client with same codeId 70 */ 63 71 void CXios::initClientSide(const string& codeId, MPI_Comm& localComm, MPI_Comm& returnComm) 64 72 { … … 89 97 } 90 98 99 //! Init server by parsing only xios part of config file 91 100 void CXios::initServer() 92 101 { … … 98 107 } 99 108 109 //! Initialize server then put it into listening state 100 110 void CXios::initServerSide(void) 101 111 { 102 // initialize();103 112 initServer(); 104 113 isClient=true; … … 123 132 } 124 133 134 //! Parse configuration file 125 135 void CXios::parseFile(const string& filename) 126 136 { … … 128 138 } 129 139 140 //! Set using server 130 141 void CXios::setUsingServer() 131 142 { … … 133 144 } 134 145 146 //! Unset using server 135 147 void CXios::setNotUsingServer() 136 148 {
Note: See TracChangeset
for help on using the changeset viewer.