sseyler / HERMESHD

HERMESHD is a discontinuous Galerkin 3D fluctuating hydrodynamics code for nanoscale fluid simulation
Other
10 stars 11 forks source link

Allow single-processor runs that do not require an MPI library #8

Open sseyler opened 7 years ago

sseyler commented 7 years ago

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.

sseyler commented 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

sseyler commented 7 years ago

Related—might want to look at LAMMPS also for how they wrap with Python combined with MPI (and mpi4py):