Changeset 2242 for XIOS/dev/dev_ym/XIOS_COUPLING/src/server.cpp
- Timestamp:
- 09/30/21 16:37:30 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/server.cpp
r2146 r2242 58 58 ///////////// PART 1 //////////////////// 59 59 ///////////////////////////////////////// 60 60 CTimer::get("XIOS").resume() ; 61 CTimer::get("XIOS initialize").resume() ; 61 62 // don't use OASIS 62 63 if (!CXios::usingOasis) … … 76 77 77 78 size_t* hashAll = new size_t[commSize] ; 78 MPI_Allgather(&hashServer,1,MPI_ UNSIGNED_LONG,hashAll,1,MPI_LONG,globalComm) ;79 MPI_Allgather(&hashServer,1,MPI_SIZE_T,hashAll,1,MPI_SIZE_T,globalComm) ; 79 80 80 81 int color=0 ; 81 set<size_t> listHash ;82 for(int i=0 ; i<=comm Rank; i++)83 if (listHash.count(hashAll[i])== 1)82 map<size_t,int> listHash ; 83 for(int i=0 ; i<=commSize ; i++) 84 if (listHash.count(hashAll[i])==0) 84 85 { 85 listHash .insert(hashAll[i]);86 listHash[hashAll[i]]=color ; 86 87 color=color+1 ; 87 88 } 89 color=listHash[hashServer] ; 88 90 delete[] hashAll ; 89 91 … … 94 96 if (!is_MPI_Initialized) oasis_init(CXios::xiosCodeId); 95 97 96 CTimer::get("XIOS").resume() ;97 98 oasis_get_localcomm(serverComm); 98 99 } … … 189 190 } 190 191 } 192 CTimer::get("XIOS initialize").suspend() ; 191 193 192 194 ///////////////////////////////////////// … … 196 198 197 199 bool finished=false ; 200 CTimer::get("XIOS event loop").resume() ; 201 198 202 while (!finished) 199 203 { 200 204 finished=daemonsManager->eventLoop() ; 201 205 } 202 206 CTimer::get("XIOS event loop").suspend() ; 203 207 } 204 208
Note: See TracChangeset
for help on using the changeset viewer.