git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13194 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -218,9 +218,9 @@ void ComputeTempPartial::remove_bias_all()
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* ----------------------------------------------------------------------
|
/* ----------------------------------------------------------------------
|
||||||
reset thermal velocity of atoms to be consistent with bias
|
reset thermal velocity of all atoms to be consistent with bias
|
||||||
called from velocity command after creating thermal velocities
|
called from velocity command after it creates thermal velocities
|
||||||
needed to re-zero components that should stay zero
|
this re-zero components that should stay zero
|
||||||
------------------------------------------------------------------------- */
|
------------------------------------------------------------------------- */
|
||||||
|
|
||||||
void ComputeTempPartial::reapply_bias_all()
|
void ComputeTempPartial::reapply_bias_all()
|
||||||
@ -229,12 +229,6 @@ void ComputeTempPartial::reapply_bias_all()
|
|||||||
int *mask = atom->mask;
|
int *mask = atom->mask;
|
||||||
int nlocal = atom->nlocal;
|
int nlocal = atom->nlocal;
|
||||||
|
|
||||||
if (nlocal > maxbias) {
|
|
||||||
memory->destroy(vbiasall);
|
|
||||||
maxbias = atom->nmax;
|
|
||||||
memory->create(vbiasall,maxbias,3,"temp/partial:vbiasall");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!xflag) {
|
if (!xflag) {
|
||||||
for (int i = 0; i < nlocal; i++)
|
for (int i = 0; i < nlocal; i++)
|
||||||
if (mask[i] & groupbit) v[i][0] = 0.0;
|
if (mask[i] & groupbit) v[i][0] = 0.0;
|
||||||
|
|||||||
Reference in New Issue
Block a user