Skip to content
Snippets Groups Projects
Commit 2889dc72 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

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)
         );
parent d75c60d8
Branches
Tags
2 merge requests!695OpenFOAM v2406,!678reduce communication argList at startup
Showing
with 398 additions and 89 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment