ENH: add guards for partially populated communicators
- these are primarily when encountering sparse (eg, inter-host) communicators. Additional UPstream convenience methods: is_rank(comm) => True if process corresponds to a rank in the communicators. Can be a master rank or a sub-rank. is_parallel(comm) => True if parallel algorithm or exchange is used on the process. same as (parRun() && (nProcs(comm) > 1) && is_rank(comm))
Showing
- applications/test/parallel-comm2/Test-parallel-comm2.C 5 additions, 3 deletionsapplications/test/parallel-comm2/Test-parallel-comm2.C
- src/OpenFOAM/db/IOstreams/Pstreams/PstreamBroadcast.C 21 additions, 24 deletionssrc/OpenFOAM/db/IOstreams/Pstreams/PstreamBroadcast.C
- src/OpenFOAM/db/IOstreams/Pstreams/PstreamCombineGather.C 10 additions, 10 deletionssrc/OpenFOAM/db/IOstreams/Pstreams/PstreamCombineGather.C
- src/OpenFOAM/db/IOstreams/Pstreams/PstreamExchange.C 33 additions, 6 deletionssrc/OpenFOAM/db/IOstreams/Pstreams/PstreamExchange.C
- src/OpenFOAM/db/IOstreams/Pstreams/PstreamExchangeConsensus.C 17 additions, 12 deletions...OpenFOAM/db/IOstreams/Pstreams/PstreamExchangeConsensus.C
- src/OpenFOAM/db/IOstreams/Pstreams/PstreamGather.C 2 additions, 2 deletionssrc/OpenFOAM/db/IOstreams/Pstreams/PstreamGather.C
- src/OpenFOAM/db/IOstreams/Pstreams/PstreamGatherList.C 20 additions, 6 deletionssrc/OpenFOAM/db/IOstreams/Pstreams/PstreamGatherList.C
- src/OpenFOAM/db/IOstreams/Pstreams/PstreamReduceOps.H 2 additions, 2 deletionssrc/OpenFOAM/db/IOstreams/Pstreams/PstreamReduceOps.H
- src/OpenFOAM/db/IOstreams/Pstreams/UPstream.C 26 additions, 23 deletionssrc/OpenFOAM/db/IOstreams/Pstreams/UPstream.C
- src/OpenFOAM/db/IOstreams/Pstreams/UPstream.H 34 additions, 22 deletionssrc/OpenFOAM/db/IOstreams/Pstreams/UPstream.H
- src/OpenFOAM/db/IOstreams/Pstreams/UPstreamTemplates.C 12 additions, 6 deletionssrc/OpenFOAM/db/IOstreams/Pstreams/UPstreamTemplates.C
- src/Pstream/mpi/UPstream.C 5 additions, 3 deletionssrc/Pstream/mpi/UPstream.C
- src/Pstream/mpi/UPstreamBroadcast.C 2 additions, 2 deletionssrc/Pstream/mpi/UPstreamBroadcast.C
- src/Pstream/mpi/UPstreamReduce.C 1 addition, 1 deletionsrc/Pstream/mpi/UPstreamReduce.C
- src/Pstream/mpi/UPstreamWrappingTemplates.C 67 additions, 30 deletionssrc/Pstream/mpi/UPstreamWrappingTemplates.C
Please register or sign in to comment