forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@5054 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
f729f1b279
commit
39efc7e491
src
|
@ -3,13 +3,21 @@
|
|||
if (test $1 == 1) then
|
||||
|
||||
cp fix_srd.cpp ..
|
||||
cp fix_srd2.cpp ..
|
||||
cp fix_wall_srd.cpp ..
|
||||
|
||||
cp fix_srd.h ..
|
||||
cp fix_srd2.h ..
|
||||
cp fix_wall_srd.h ..
|
||||
|
||||
elif (test $1 == 0) then
|
||||
|
||||
rm ../fix_srd.cpp
|
||||
rm ../fix_srd2.cpp
|
||||
rm ../fix_wall_srd.cpp
|
||||
|
||||
rm ../fix_srd.h
|
||||
rm ../fix_srd2.h
|
||||
rm ../fix_wall_srd.h
|
||||
|
||||
fi
|
||||
|
|
|
@ -440,12 +440,12 @@ void Finish::end(int flag)
|
|||
}
|
||||
|
||||
// find a non-skip neighbor list containing full pairwise interactions
|
||||
// count neighbors in that list for stats purposes
|
||||
|
||||
for (m = 0; m < neighbor->old_nrequest; m++)
|
||||
if (neighbor->old_requests[m]->full &&
|
||||
neighbor->old_requests[m]->skip == 0
|
||||
) break;
|
||||
|
||||
neighbor->old_requests[m]->skip == 0) break;
|
||||
|
||||
nneighfull = 0;
|
||||
if (m < neighbor->old_nrequest) {
|
||||
if (neighbor->lists[m]->numneigh > 0) {
|
||||
|
@ -482,8 +482,8 @@ void Finish::end(int flag)
|
|||
}
|
||||
|
||||
tmp = MAX(nneigh,nneighfull);
|
||||
double nall = 0;
|
||||
// MPI_Allreduce(&tmp,&nall,1,MPI_DOUBLE,MPI_SUM,world);
|
||||
double nall;
|
||||
MPI_Allreduce(&tmp,&nall,1,MPI_DOUBLE,MPI_SUM,world);
|
||||
|
||||
int nspec;
|
||||
double nspec_all;
|
||||
|
|
Loading…
Reference in New Issue