don't set MPI communicator when compiling in serial with MPI stubs

This commit is contained in:
Axel Kohlmeyer 2019-07-24 16:03:11 -04:00
parent d59737299c
commit 3c53efb1ca
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 4 additions and 0 deletions

View File

@ -107,7 +107,11 @@ FixPlumed::FixPlumed(LAMMPS *lmp, int narg, char **arg) :
// whereas if partitions are not defined then world is equal to
// MPI_COMM_WORLD.
#if !defined(MPI_STUBS)
// plumed does not know about LAMMPS using the MPI STUBS library and will
// fail if this is called under these circumstances
p->cmd("setMPIComm",&world);
#endif
// Set up units
// LAMMPS units wrt kj/mol - nm - ps