Changeset 1021 for XIOS/dev/dev_olga/src/cxios.cpp
- Timestamp:
- 01/10/17 14:36:29 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_olga/src/cxios.cpp
r983 r1021 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 // string CXios::xiosCodeIdPrm="xios.x.1" ; 19 // string CXios::xiosCodeIdSnd="xios.x.2" ; 20 20 string CXios::clientFile="./xios_client"; 21 21 string CXios::serverFile="./xios_server"; 22 string CXios::serverPr imFile="./xios_server1";23 string CXios::serverS cndFile="./xios_server2";22 string CXios::serverPrmFile="./xios_server1"; 23 string CXios::serverSndFile="./xios_server2"; 24 24 25 25 bool CXios::isClient ; 26 26 bool CXios::isServer ; 27 int CXios::serverLevel = 0 ;27 // int CXios::serverLevel = 0 ; 28 28 MPI_Comm CXios::globalComm ; 29 29 bool CXios::usingOasis ; 30 30 bool CXios::usingServer = false; 31 bool CXios::usingServer2 = false; 32 int CXios::ratioServer2 = 50; 31 33 double CXios::bufferSizeFactor = 1.0; 32 34 const double CXios::defaultBufferSizeFactor = 1.0; … … 52 54 usingOasis=getin<bool>("using_oasis",false) ; 53 55 usingServer=getin<bool>("using_server",false) ; 56 usingServer2=getin<bool>("using_server2",false) ; 57 ratioServer2=getin<int>("ratio_server2",50); 54 58 info.setLevel(getin<int>("info_level",0)) ; 55 59 report.setLevel(getin<int>("info_level",50)); … … 135 139 { 136 140 initServer(); 137 if (serverLvl == 1) 141 142 // if (serverLvl == 1) 143 // isClient = true; 144 // else 145 // isClient = false; 146 // 147 // isServer = true; 148 // serverLevel = serverLvl; 149 150 151 152 // Initialize all aspects MPI 153 CServer::initialize(); 154 isServer = true; 155 if (CServer::serverLevel == 1) 138 156 isClient = true; 139 157 else 140 158 isClient = false; 141 159 142 isServer = true;143 serverLevel = serverLvl;144 145 // Initialize all aspects MPI146 CServer::initialize();147 160 if (CServer::getRank()==0) globalRegistry = new CRegistry(CServer::intraComm) ; 148 161 149 162 if (printLogs2Files) 150 163 { 151 if (CXios::serverLevel == 0) 164 if (CServer::serverLevel == 0) 165 // if (CXios::serverLevel == 0) 152 166 { 153 167 CServer::openInfoStream(serverFile); 154 168 CServer::openErrorStream(serverFile); 155 169 } 156 else if (CXios::serverLevel == 1) 170 else if (CServer::serverLevel == 1) 171 // else if (CXios::serverLevel == 1) 157 172 { 158 CServer::openInfoStream(serverPr imFile);159 CServer::openErrorStream(serverPr imFile);173 CServer::openInfoStream(serverPrmFile); 174 CServer::openErrorStream(serverPrmFile); 160 175 } 161 176 else 162 177 { 163 CServer::openInfoStream(serverS cndFile);164 CServer::openErrorStream(serverS cndFile);178 CServer::openInfoStream(serverSndFile); 179 CServer::openErrorStream(serverSndFile); 165 180 } 166 181 } … … 197 212 } 198 213 199 //! Set using secondary server200 // void CXios::setUsingSecondaryServer()201 // {202 // usingSecondaryServer = true;203 // }204 205 214 //! Unset using server 206 215 void CXios::setNotUsingServer()
Note: See TracChangeset
for help on using the changeset viewer.