apply RIST improvements
No child items are currently assigned. Use child items to break down this issue into smaller parts.
Link issues together to show that they're related. Learn more.
Activity
- Mark OLESEN assigned to @mark
assigned to @mark
- Mark OLESEN changed the description
changed the description
- Author Maintainer
As discussed, this changeset will also lend itself nicely to inserting into scatter (the OpenFOAM term scatter is actually a broadcast). Apart from the obvious place as Foam::scatter, it could also be useful for streaming aggregate values.
Eg, (from src/lumpedPointMotion/state/lumpedPointState.C).
// Scatter master data using communication scheme const List<Pstream::commsStruct>& comms = ( (Pstream::nProcs() < Pstream::nProcsSimpleSum) ? Pstream::linearCommunication() : Pstream::treeCommunication() ); // Get my communication order const Pstream::commsStruct& myComm = comms[Pstream::myProcNo()]; // Receive from up if (myComm.above() != -1) { IPstream fromAbove ( UPstream::commsTypes::scheduled, myComm.above(), 0, Pstream::msgType(), Pstream::worldComm ); fromAbove >> points_ >> angles_ >> degrees_; } // Send to downstairs neighbours forAllReverse(myComm.below(), belowI) { OPstream toBelow ( UPstream::commsTypes::scheduled, myComm.below()[belowI], 0, Pstream::msgType(), Pstream::worldComm ); toBelow << points_ << angles_ << degrees_; } rotationPtr_.reset(nullptr); // MPI barrier Pstream::scatter(ok);
I think this will be replaceable with this:
// Scatter master data if (Pstream::master()) { OPBstream toAll(Pstream::masterNo()); toAll << points_ << angles_ << degrees_; } else { IPBstream fromMaster(Pstream::masterNo()); fromMaster >> points_ >> angles_ >> degrees_; } rotationPtr_.reset(nullptr);
- Author Maintainer
Since some of these changes will positively affect isoAdvection, I've tagged you as well so that you will get notification when things get pushed.
- Mark OLESEN mentioned in commit ff0043a1
mentioned in commit ff0043a1
- Mark OLESEN mentioned in commit 0484ac1d
mentioned in commit 0484ac1d
- Mark OLESEN mentioned in commit eeeba129
mentioned in commit eeeba129
- Mark OLESEN mentioned in merge request !528 (merged)
mentioned in merge request !528 (merged)
- Mark OLESEN mentioned in commit 20202882
mentioned in commit 20202882
- Mark OLESEN mentioned in commit bed3deed
mentioned in commit bed3deed
- Mark OLESEN mentioned in commit 4de1d212
mentioned in commit 4de1d212
- Mark OLESEN mentioned in commit de61c9d6
mentioned in commit de61c9d6
- Mark OLESEN mentioned in commit 7bf1ea16
mentioned in commit 7bf1ea16
- Mark OLESEN mentioned in commit 4a550ba0
mentioned in commit 4a550ba0
- Mark OLESEN mentioned in commit 3fdcdf60
mentioned in commit 3fdcdf60
- Mark OLESEN mentioned in commit a9cdaa1b
mentioned in commit a9cdaa1b
- Mark OLESEN mentioned in commit ff4998d3
mentioned in commit ff4998d3
- Mark OLESEN mentioned in commit 2b54d861
mentioned in commit 2b54d861
- Mark OLESEN mentioned in commit 8478595a
mentioned in commit 8478595a
- Mark OLESEN closed
closed
- Mark OLESEN mentioned in commit 10cf9cb3
mentioned in commit 10cf9cb3
- Mark OLESEN mentioned in commit 18e0d7e4
mentioned in commit 18e0d7e4
- Mark OLESEN mentioned in commit a27c8560
mentioned in commit a27c8560