Skip to content
  • Mark OLESEN's avatar
    ENH: add wrapped accessor for MPI_Comm · 2889dc72
    Mark OLESEN authored
    - 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)
             );
    2889dc72