Changeset 548 for XIOS/branchs/xios-1.0/src/cxios.cpp
- Timestamp:
- 01/23/15 16:18:43 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/branchs/xios-1.0/src/cxios.cpp
r507 r548 27 27 size_t CXios::defaultBufferSize=1024*1024*100 ; // 100Mo 28 28 double CXios::defaultBufferServerFactorSize=2 ; 29 bool CXios::printInfo2File; 30 bool CXios::isServerSide; 29 bool CXios::printLogs2Files; 31 30 32 31 … … 38 37 usingServer=getin<bool>("using_server",false) ; 39 38 info.setLevel(getin<int>("info_level",0)) ; 40 print Info2File=getin<bool>("print_file",false);39 printLogs2Files=getin<bool>("print_file",false); 41 40 bufferSize=getin<size_t>("buffer_size",defaultBufferSize) ; 42 41 bufferServerFactorSize=getin<double>("buffer_server_factor_size",defaultBufferServerFactorSize) ; … … 54 53 CClient::initialize(codeId,localComm,returnComm) ; 55 54 56 if (usingServer) isServer Side = isServer=false;57 else isServer Side = isServer=true;55 if (usingServer) isServer=false; 56 else isServer=true; 58 57 59 if (printInfo2File) 58 if (printLogs2Files) 59 { 60 60 CClient::openInfoStream(clientFile); 61 CClient::openErrorStream(clientFile); 62 } 61 63 else 64 { 62 65 CClient::openInfoStream(); 66 CClient::openErrorStream(); 67 } 63 68 } 64 69 … … 82 87 isServer=false ; 83 88 84 isServerSide = true;85 86 89 // Initialize all aspects MPI 87 90 CServer::initialize(); 88 91 89 if (printInfo2File) 92 if (printLogs2Files) 93 { 90 94 CServer::openInfoStream(serverFile); 95 CServer::openErrorStream(serverFile); 96 } 91 97 else 98 { 92 99 CServer::openInfoStream(); 100 CServer::openErrorStream(); 101 } 93 102 94 103 // Enter the loop to listen message from Client
Note: See TracChangeset
for help on using the changeset viewer.