Changeset 1021 for XIOS/dev/dev_olga/src/context_server.cpp
- Timestamp:
- 01/10/17 14:36:29 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_olga/src/context_server.cpp
r1009 r1021 44 44 } 45 45 46 CContextServer::CContextServer(CContext* parent, int srvLvl, MPI_Comm intraComm_,MPI_Comm interComm_)47 {48 context=parent;49 intraComm=intraComm_;50 MPI_Comm_size(intraComm,&intraCommSize);51 MPI_Comm_rank(intraComm,&intraCommRank);52 interComm=interComm_;53 int flag;54 MPI_Comm_test_inter(interComm,&flag);55 if (flag) MPI_Comm_remote_size(interComm,&commSize);56 else MPI_Comm_size(interComm,&commSize);57 58 currentTimeLine=0;59 scheduled=false;60 finished=false;61 62 boost::hash<string> hashString;63 StdString contextId = context->getId();64 hashId=hashString(contextId);65 66 }46 // CContextServer::CContextServer(CContext* parent, int srvLvl, MPI_Comm intraComm_,MPI_Comm interComm_) 47 // { 48 // context=parent; 49 // intraComm=intraComm_; 50 // MPI_Comm_size(intraComm,&intraCommSize); 51 // MPI_Comm_rank(intraComm,&intraCommRank); 52 // interComm=interComm_; 53 // int flag; 54 // MPI_Comm_test_inter(interComm,&flag); 55 // if (flag) MPI_Comm_remote_size(interComm,&commSize); 56 // else MPI_Comm_size(interComm,&commSize); 57 // 58 // currentTimeLine=0; 59 // scheduled=false; 60 // finished=false; 61 // 62 // boost::hash<string> hashString; 63 // StdString contextId = context->getId(); 64 // hashId=hashString(contextId); 65 // 66 // } 67 67 void CContextServer::setPendingEvent(void) 68 68 {
Note: See TracChangeset
for help on using the changeset viewer.