ENH: remove obsolete Pstream functions (#3087)
- the old Pstream::scatter routines (which were largely a misnomer) have been superseded by various broadcast routines, but were left in the code with #ifndef/#ifdef Foam_Pstream_scatter_nobroadcast guards. Now noisily deprecate them, and remove the old manual tree communication in favour of MPI broadcast and/or serialize/de-serialize with wrapped Pstream::broadcast - consolidate various gather methods to include the communication structure directly. No functional change, but reduces the number of methods. ENH: add parallel guard to UPstream::whichCommunication() method - returns List::null() as the schedule for non-parallel instead of an inappropriate linear or tree schedule ENH: Pstream::listGatherValues, Pstream::listScatterValues - like the existing UPstream versions but supporting non-contiguous
Showing
- applications/test/gatherValues1/Make/files 1 addition, 1 deletionapplications/test/gatherValues1/Make/files
- applications/test/gatherValues1/Test-gatherValues1.cxx 34 additions, 32 deletionsapplications/test/gatherValues1/Test-gatherValues1.cxx
- src/OpenFOAM/db/IOstreams/Pstreams/Pstream.H 49 additions, 130 deletionssrc/OpenFOAM/db/IOstreams/Pstreams/Pstream.H
- src/OpenFOAM/db/IOstreams/Pstreams/PstreamBroadcast.C 25 additions, 1 deletionsrc/OpenFOAM/db/IOstreams/Pstreams/PstreamBroadcast.C
- src/OpenFOAM/db/IOstreams/Pstreams/PstreamCombineGather.C 23 additions, 391 deletionssrc/OpenFOAM/db/IOstreams/Pstreams/PstreamCombineGather.C
- src/OpenFOAM/db/IOstreams/Pstreams/PstreamGather.C 147 additions, 75 deletionssrc/OpenFOAM/db/IOstreams/Pstreams/PstreamGather.C
- src/OpenFOAM/db/IOstreams/Pstreams/PstreamGatherList.C 19 additions, 7 deletionssrc/OpenFOAM/db/IOstreams/Pstreams/PstreamGatherList.C
- src/OpenFOAM/db/IOstreams/Pstreams/PstreamReduceOps.H 9 additions, 26 deletionssrc/OpenFOAM/db/IOstreams/Pstreams/PstreamReduceOps.H
- src/OpenFOAM/db/IOstreams/Pstreams/UPstream.C 1 addition, 0 deletionssrc/OpenFOAM/db/IOstreams/Pstreams/UPstream.C
- src/OpenFOAM/db/IOstreams/Pstreams/UPstream.H 17 additions, 6 deletionssrc/OpenFOAM/db/IOstreams/Pstreams/UPstream.H
- src/OpenFOAM/db/IOstreams/Pstreams/UPstreamTemplates.C 53 additions, 50 deletionssrc/OpenFOAM/db/IOstreams/Pstreams/UPstreamTemplates.C
Please register or sign in to comment