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

@ -67,7 +67,10 @@ liblammpsplugin_t *liblammpsplugin_load(const char *lib)
#if defined(LAMMPS_LIB_MPI)
ADDSYM(open);
#else
lmp->open = NULL;
#endif
ADDSYM(open_no_mpi);
ADDSYM(open_fortran);
ADDSYM(close);