Top-level MPI wrapper module with preprocessor selection
This module provides a unified interface to MPI by selecting between
the modern mpi_f08 interface (pic_mpi_f08) and the legacy MPI interface
(pic_mpi) at compile time using the USE_LEGACY preprocessor flag.
Usage:
- Without USE_LEGACY: Uses modern mpi_f08 bindings (recommended)
- With USE_LEGACY: Uses traditional integer-based MPI bindings
- With USE_SERIAL: no MPI at all – one rank, no library underneath
(PIC_ENABLE_MPI=OFF)
Both implementations provide the same object-oriented API for consistency.
Nodes of different colours represent the following:
Solid arrows point from a submodule to the (sub)module which it is
descended from. Dashed arrows point from a module or program unit to
modules which it uses.
Where possible, edges connecting nodes are
given different colours to make them easier to distinguish in
large graphs.