forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@11314 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
422e202a7f
commit
fd56a3d416
|
@ -107,10 +107,10 @@ FixLbRigidPCSphere::FixLbRigidPCSphere(LAMMPS *lmp, int narg, char **arg) :
|
|||
if (mask[i] & groupbit) maxmol_tag = MAX(maxmol_tag,molecule[i]);
|
||||
|
||||
tagint itmp;
|
||||
MPI_Allreduce(&maxmol_tag,&itmp,1,MPI__LMP_TAGINT,MPI_MAX,world);
|
||||
MPI_Allreduce(&maxmol_tag,&itmp,1,MPI_LMP_TAGINT,MPI_MAX,world);
|
||||
if (itmp+1 > MAXSMALLINT)
|
||||
error->all(FLERR,"Too many molecules for fix lb/rigid/pc/sphere");
|
||||
maxmol = (int) itmp;
|
||||
int maxmol = (int) itmp;
|
||||
|
||||
int *ncount;
|
||||
memory->create(ncount,maxmol+1,"rigid:ncount");
|
||||
|
|
Loading…
Reference in New Issue