Changeset 2551
- Timestamp:
- 08/30/23 11:33:23 (17 months ago)
- Location:
- XIOS3/trunk/src/transport
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS3/trunk/src/transport/context_client.cpp
r2547 r2551 39 39 MPI_Comm_size(intraComm, &clientSize); 40 40 41 int flag; 42 43 MPI_Comm_remote_size(interComm, &serverSize); 41 int flag; 42 MPI_Comm_test_inter(interComm, &flag); 43 if (flag) MPI_Comm_remote_size(interComm, &serverSize); 44 else MPI_Comm_size(interComm, &serverSize); 44 45 45 46 computeLeader(clientRank, clientSize, serverSize, ranksServerLeader, ranksServerNotLeader); -
XIOS3/trunk/src/transport/context_server.cpp
r2547 r2551 44 44 45 45 interComm=interComm_; 46 MPI_Comm_remote_size(interComm,&clientSize_); 46 int flag; 47 MPI_Comm_test_inter(interComm,&flag); 48 if (flag) MPI_Comm_remote_size(interComm,&clientSize_); 49 else MPI_Comm_size(interComm,&clientSize_); 47 50 48 51 SRegisterContextInfo contextInfo ;
Note: See TracChangeset
for help on using the changeset viewer.