Open sseyler opened 7 years ago
Here's a page of MPI stubs for Fortran90, which is based on the similar package provided as part of LAMMPS: http://people.sc.fsu.edu/~jburkardt/f_src/mpi_stubs/mpi_stubs.html
Here's an example from LAMMPS: https://github.com/lammps/lammps/blob/7ca5dce2f56cd13ba9f9fc36392a102be92330da/src/STUBS/mpi.h
Related—might want to look at LAMMPS also for how they wrap with Python combined with MPI (and mpi4py):
Create single-processor stub routines so MPI can be turned off. This will allow the code to be compiled without an MPI library, making it easier to do debugging, Python wrapping, and hybrid code development.