must not set *any* communicators in plumed lib when using MPI_STUBS

This commit is contained in:
Axel Kohlmeyer 2020-06-08 10:38:20 -04:00
parent 7512cd3518
commit 8b154cfbf6
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 1 additions and 1 deletions

View File

@ -82,6 +82,7 @@ FixPlumed::FixPlumed(LAMMPS *lmp, int narg, char **arg) :
error->all(FLERR,"Incompatible API version for PLUMED in fix plumed. "
"Only Plumed 2.4.x, 2.5.x, and 2.6.x are tested and supported.");
#if !defined(MPI_STUBS)
// If the -partition option is activated then enable
// inter-partition communication
@ -108,7 +109,6 @@ 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);