Changeset 983 for XIOS/dev/dev_olga/src/cxios.cpp
- Timestamp:
- 11/07/16 17:55:55 (7 years ago)
- Location:
- XIOS/dev/dev_olga
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_olga/src/cxios.cpp
r956 r983 16 16 string CXios::rootFile="./iodef.xml" ; 17 17 string CXios::xiosCodeId="xios.x" ; 18 string CXios::xiosCodeIdPrm="xios.x.1" ; 19 string CXios::xiosCodeIdSnd="xios.x.2" ; 18 20 string CXios::clientFile="./xios_client"; 19 21 string CXios::serverFile="./xios_server"; 22 string CXios::serverPrimFile="./xios_server1"; 23 string CXios::serverScndFile="./xios_server2"; 20 24 21 25 bool CXios::isClient ; 22 26 bool CXios::isServer ; 27 int CXios::serverLevel = 0 ; 23 28 MPI_Comm CXios::globalComm ; 24 29 bool CXios::usingOasis ; … … 127 132 128 133 //! Initialize server then put it into listening state 129 void CXios::initServerSide( void)134 void CXios::initServerSide(int serverLvl) 130 135 { 131 136 initServer(); 132 isClient = false; 137 if (serverLvl == 1) 138 isClient = true; 139 else 140 isClient = false; 141 133 142 isServer = true; 143 serverLevel = serverLvl; 134 144 135 145 // Initialize all aspects MPI … … 139 149 if (printLogs2Files) 140 150 { 141 CServer::openInfoStream(serverFile); 142 CServer::openErrorStream(serverFile); 151 if (CXios::serverLevel == 0) 152 { 153 CServer::openInfoStream(serverFile); 154 CServer::openErrorStream(serverFile); 155 } 156 else if (CXios::serverLevel == 1) 157 { 158 CServer::openInfoStream(serverPrimFile); 159 CServer::openErrorStream(serverPrimFile); 160 } 161 else 162 { 163 CServer::openInfoStream(serverScndFile); 164 CServer::openErrorStream(serverScndFile); 165 } 143 166 } 144 167 else … … 174 197 } 175 198 199 //! Set using secondary server 200 // void CXios::setUsingSecondaryServer() 201 // { 202 // usingSecondaryServer = true; 203 // } 204 176 205 //! Unset using server 177 206 void CXios::setNotUsingServer()
Note: See TracChangeset
for help on using the changeset viewer.