forked from lijiext/lammps
must not set *any* communicators in plumed lib when using MPI_STUBS
This commit is contained in:
parent
7512cd3518
commit
8b154cfbf6
|
@ -82,6 +82,7 @@ FixPlumed::FixPlumed(LAMMPS *lmp, int narg, char **arg) :
|
||||||
error->all(FLERR,"Incompatible API version for PLUMED in fix plumed. "
|
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.");
|
"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
|
// If the -partition option is activated then enable
|
||||||
// inter-partition communication
|
// 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
|
// whereas if partitions are not defined then world is equal to
|
||||||
// MPI_COMM_WORLD.
|
// MPI_COMM_WORLD.
|
||||||
|
|
||||||
#if !defined(MPI_STUBS)
|
|
||||||
// plumed does not know about LAMMPS using the MPI STUBS library and will
|
// plumed does not know about LAMMPS using the MPI STUBS library and will
|
||||||
// fail if this is called under these circumstances
|
// fail if this is called under these circumstances
|
||||||
p->cmd("setMPIComm",&world);
|
p->cmd("setMPIComm",&world);
|
||||||
|
|
Loading…
Reference in New Issue