check that wrapper for lammps_open() was compiled with -DLAMMPS_LIB_MPI=1

This commit is contained in:
Axel Kohlmeyer
2022-10-31 16:12:56 -04:00
parent 3ae2f9966b
commit 5d115fec90
3 changed files with 12 additions and 1 deletions

View File

@ -111,6 +111,8 @@ struct _liblammpsplugin {
void *handle;
#if defined(LAMMPS_LIB_MPI)
void *(*open)(int, char **, MPI_Comm, void **);
#else
void *open;
#endif
void *(*open_no_mpi)(int, char **, void **);
void *(*open_fortran)(int, char **, void **, int);