git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@15283 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -98,12 +98,12 @@ void Angle::ev_setup(int eflag, int vflag)
|
|||||||
if (eflag_atom && atom->nmax > maxeatom) {
|
if (eflag_atom && atom->nmax > maxeatom) {
|
||||||
maxeatom = atom->nmax;
|
maxeatom = atom->nmax;
|
||||||
memory->destroy(eatom);
|
memory->destroy(eatom);
|
||||||
memory->create(eatom,comm->nthreads*maxeatom,"bond:eatom");
|
memory->create(eatom,comm->nthreads*maxeatom,"angle:eatom");
|
||||||
}
|
}
|
||||||
if (vflag_atom && atom->nmax > maxvatom) {
|
if (vflag_atom && atom->nmax > maxvatom) {
|
||||||
maxvatom = atom->nmax;
|
maxvatom = atom->nmax;
|
||||||
memory->destroy(vatom);
|
memory->destroy(vatom);
|
||||||
memory->create(vatom,comm->nthreads*maxvatom,6,"bond:vatom");
|
memory->create(vatom,comm->nthreads*maxvatom,6,"angle:vatom");
|
||||||
}
|
}
|
||||||
|
|
||||||
// zero accumulators
|
// zero accumulators
|
||||||
|
|||||||
@ -98,12 +98,12 @@ void Dihedral::ev_setup(int eflag, int vflag)
|
|||||||
if (eflag_atom && atom->nmax > maxeatom) {
|
if (eflag_atom && atom->nmax > maxeatom) {
|
||||||
maxeatom = atom->nmax;
|
maxeatom = atom->nmax;
|
||||||
memory->destroy(eatom);
|
memory->destroy(eatom);
|
||||||
memory->create(eatom,comm->nthreads*maxeatom,"bond:eatom");
|
memory->create(eatom,comm->nthreads*maxeatom,"dihedral:eatom");
|
||||||
}
|
}
|
||||||
if (vflag_atom && atom->nmax > maxvatom) {
|
if (vflag_atom && atom->nmax > maxvatom) {
|
||||||
maxvatom = atom->nmax;
|
maxvatom = atom->nmax;
|
||||||
memory->destroy(vatom);
|
memory->destroy(vatom);
|
||||||
memory->create(vatom,comm->nthreads*maxvatom,6,"bond:vatom");
|
memory->create(vatom,comm->nthreads*maxvatom,6,"dihedral:vatom");
|
||||||
}
|
}
|
||||||
|
|
||||||
// zero accumulators
|
// zero accumulators
|
||||||
|
|||||||
@ -96,12 +96,12 @@ void Improper::ev_setup(int eflag, int vflag)
|
|||||||
if (eflag_atom && atom->nmax > maxeatom) {
|
if (eflag_atom && atom->nmax > maxeatom) {
|
||||||
maxeatom = atom->nmax;
|
maxeatom = atom->nmax;
|
||||||
memory->destroy(eatom);
|
memory->destroy(eatom);
|
||||||
memory->create(eatom,comm->nthreads*maxeatom,"bond:eatom");
|
memory->create(eatom,comm->nthreads*maxeatom,"improper:eatom");
|
||||||
}
|
}
|
||||||
if (vflag_atom && atom->nmax > maxvatom) {
|
if (vflag_atom && atom->nmax > maxvatom) {
|
||||||
maxvatom = atom->nmax;
|
maxvatom = atom->nmax;
|
||||||
memory->destroy(vatom);
|
memory->destroy(vatom);
|
||||||
memory->create(vatom,comm->nthreads*maxvatom,6,"bond:vatom");
|
memory->create(vatom,comm->nthreads*maxvatom,6,"improper:vatom");
|
||||||
}
|
}
|
||||||
|
|
||||||
// zero accumulators
|
// zero accumulators
|
||||||
|
|||||||
Reference in New Issue
Block a user