ENH: generalize MPI broadcast to basic and user-defined MPI types

- simplify and rationalize some of the broadcast methods for more code
  reuse.

  The bottom level UPstream::broadcast is now always to/from "root=0".
  This was previously passed as a default parameter, but never used
  anything other than '0' in the code. Fixing it as '0' makes it
  consistent with the 'top-down' logical for node-based broadcast.
This commit is contained in:
Mark Olesen
2025-02-28 10:41:10 +01:00
parent 151f4df546
commit f0b844eb47
8 changed files with 115 additions and 65 deletions

View File

@ -345,8 +345,8 @@ static void reportOffsets(const globalIndex& gi)
UPstream::broadcast
(
allOffsets.data_bytes(),
allOffsets.size_bytes(),
allOffsets.data(),
allOffsets.size(),
interNodeComm
);
}