git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@10864 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp 2013-10-14 22:01:32 +00:00
parent 506f47b0a5
commit 60d086bf65
3 changed files with 4 additions and 13 deletions

View File

@ -127,17 +127,7 @@ void ComputeMSD::init()
// nmsd = # of atoms in group
int *mask = atom->mask;
int nlocal = atom->nlocal;
nmsd = 0;
for (int i = 0; i < nlocal; i++)
if (mask[i] & groupbit) nmsd++;
int nmsd_all;
MPI_Allreduce(&nmsd,&nmsd_all,1,MPI_INT,MPI_SUM,world);
nmsd = nmsd_all;
nmsd = group->count(igroup);
masstotal = group->mass(igroup);
}

View File

@ -32,7 +32,8 @@ class ComputeMSD : public Compute {
virtual void compute_vector();
protected:
int comflag,nmsd;
int comflag;
bigint nmsd;
double masstotal;
char *id_fix;
class FixStore *fix;

View File

@ -301,7 +301,7 @@ ComputeReduce::~ComputeReduce()
void ComputeReduce::init()
{
// set indices and check validity of all computes,fixes,variables
// set indices of all computes,fixes,variables
for (int m = 0; m < nvalues; m++) {
if (which[m] == COMPUTE) {