openfoam/applications/test/parallel-external-init
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 CONFIG: rationalize mpi config tuning (#1910) 2020-11-11 18:36:01 +01:00
Test-parallel-external-init.C ENH: add wrapped accessor for MPI_Comm 2024-04-23 10:58:38 +02:00