openfoam/applications/test/processorTopology
Mark Olesen 2889dc7248 ENH: add wrapped accessor for MPI_Comm
- UPstream::Communicator is similar to UPstream::Request to
  wrap/unwrap MPI_Comm. Provides a 'lookup' method to transcribe
  the internal OpenFOAM communicator tracking to the opaque wrapped
  version.

- provide an 'openfoam_mpi.H' interfacing file, which includes
  the <mpi.h> as well as casting routines.

  Example (caution: ugly!)

     MPI_Comm myComm =
         PstreamUtils::Cast::to_mpi
         (
             UPstream::Communicator::lookup(UPstream::worldComm)
         );
2024-04-23 10:58:38 +02:00
..
Make ENH: add separate tracking of MPI_Comm_free, MPI_Group_free pending 2023-02-07 22:39:00 +01:00
Test-processorTopology.C ENH: add wrapped accessor for MPI_Comm 2024-04-23 10:58:38 +02:00