Changeset 180 for XMLIO_V2/dev/dev_rv/src/xmlio/manager/xios_manager.cpp
- Timestamp:
- 04/19/11 15:06:51 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_V2/dev/dev_rv/src/xmlio/manager/xios_manager.cpp
r179 r180 2 2 3 3 #include "tree_manager.hpp" 4 #include "data_treatment.hpp" 4 5 5 6 namespace xmlioserver 6 7 { 7 8 /// ////////////////////// Définitions ////////////////////// /// 9 8 10 void CXIOSManager::Initialise(XIOSType type, int * argc, char *** argv) 9 11 { … … 33 35 std::vector<StdString> CXIOSManager::ExeOptions; 34 36 35 CXIOSManager::XIOSType CXIOSManager::Type = CLIENT; 37 CXIOSManager::XIOSType CXIOSManager::Type = CLIENT; 38 CXIOSManager::XIOSStatus CXIOSManager::Status = LOC_UNUSED; 36 39 37 40 StdString CXIOSManager::ClientName("unknown name"); … … 72 75 oss << StdString("data/def/def_server_end.") 73 76 << CMPIManager::GetCommRank(CMPIManager::GetCommWorld()); 74 CTreeManager::PrintTreeToFile(oss.str()); 77 CTreeManager::PrintTreeToFile(oss.str()); 78 79 //data::CDataTreatment dt; 75 80 } 76 81 … … 166 171 isIncl = true; 167 172 CXIOSManager::ClientName = clientName; 173 CXIOSManager::Status = LOC_CLIENT; 168 174 } 169 175 if (currentRank == start) … … 171 177 isClient = false; isIncl_ = true; 172 178 CXIOSManager::Comm_Client_Server = comm_; 179 CXIOSManager::Status = LOC_SERVER; 173 180 } 174 181 if (clieindex.size() == nbClient) … … 209 216 void CXIOSManager::RunClient(comm::MPIComm comm_client) 210 217 { 218 CXIOSManager::Status = LOC_CLIENT_SERVER; 211 219 (CXIOSManager::Clients.begin()->second.entry)(comm_client, comm_client, comm_client); 212 220 } … … 221 229 222 230 if (nbClient < nbClientPServer) 223 ERROR("CXIOSManager::AddClient( clientName, nbClient, nbClientPServer, entry_point)",231 ERROR("CXIOSManager::AddClient(...)", 224 232 << "nbClient < nbClientPServer"); 233 225 234 if ((nbClient % nbClientPServer) != 0) 226 ERROR("CXIOSManager::AddClient( clientName, nbClient, nbClientPServer, entry_point)",235 ERROR("CXIOSManager::AddClient(...)", 227 236 << " (nbClient % nbClientPServer) != 0 !"); 237 228 238 if ((nbprocess-nbprocess_used) < (nbClient + nbClient/nbClientPServer)) 229 ERROR("CXIOSManager::AddClient( clientName, nbClient, nbClientPServer, entry_point)",239 ERROR("CXIOSManager::AddClient(...)", 230 240 << " Pas assez de processus disponibles !"); 241 231 242 if (CXIOSManager::Clients.find(clientName) != CXIOSManager::Clients.end()) 232 ERROR("CXIOSManager::AddClient( clientName, nbClient, nbClientPServer, entry_point)",243 ERROR("CXIOSManager::AddClient(...)", 233 244 << " Un client portant le même nom existe déjà !"); 234 245 … … 332 343 } 333 344 } 345 346 //--------------------------------------------------------------- 347 348 CXIOSManager::XIOSType CXIOSManager::GetType(void) 349 { 350 return (CXIOSManager::Type); 351 } 352 353 //--------------------------------------------------------------- 354 355 CXIOSManager::XIOSStatus CXIOSManager::GetStatus(void) 356 { 357 return (CXIOSManager::Status); 358 } 359 360 //--------------------------------------------------------------- 361 362 StdString CXIOSManager::GetClientName(void) 363 { 364 return (CXIOSManager::ClientName); 365 } 334 366 335 367 ///--------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.