Changeset 507 for XIOS/branchs/xios-1.0
- Timestamp:
- 10/22/14 13:28:48 (9 years ago)
- Location:
- XIOS/branchs/xios-1.0/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/branchs/xios-1.0/src/client.cpp
r501 r507 132 132 CTimer::get("XIOS").resume() ; 133 133 CTimer::get("XIOS init").resume() ; 134 135 // Verify whether we are on server mode or not 136 CXios::setNotUsingServer(); 137 int interCommSize = 0, intraCommSize = 0; 138 oasis_get_intercomm(interComm,CXios::xiosCodeId); 139 MPI_Comm_size(interComm, &interCommSize); 140 MPI_Comm_size(intraComm, &intraCommSize); 141 if (interCommSize == intraCommSize) CXios::setUsingServer(); 142 143 if (CXios::usingServer) 134 135 if (CXios::usingServer) 144 136 { 145 137 MPI_Status status ; 146 138 MPI_Comm_rank(intraComm,&rank) ; 139 147 140 oasis_get_intercomm(interComm,CXios::xiosCodeId) ; 148 141 if (rank==0) MPI_Recv(&serverLeader,1, MPI_INT, 0, 0, interComm, &status) ; -
XIOS/branchs/xios-1.0/src/cxios.cpp
r501 r507 36 36 parseFile(rootFile); 37 37 usingOasis=getin<bool>("using_oasis",false) ; 38 usingServer=getin<bool>("using_server",false) ; 38 39 info.setLevel(getin<int>("info_level",0)) ; 39 40 printInfo2File=getin<bool>("print_file",false);
Note: See TracChangeset
for help on using the changeset viewer.