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

This commit is contained in:
sjplimp
2010-08-07 22:24:56 +00:00
parent d20cbd2142
commit 8ef98d4bc5
2 changed files with 115 additions and 0 deletions

View File

@ -202,6 +202,17 @@ void Replicate::command(int narg, char **arg)
}
}
if (atom->shape) {
for (int itype = 1; itype <= atom->ntypes; itype++) {
atom->shape_setflag[itype] = old->shape_setflag[itype];
if (atom->shape_setflag[itype]) {
atom->shape[itype][0] = old->shape[itype][0];
atom->shape[itype][1] = old->shape[itype][1];
atom->shape[itype][2] = old->shape[itype][2];
}
}
}
if (atom->dipole) {
for (int itype = 1; itype <= atom->ntypes; itype++) {
atom->dipole_setflag[itype] = old->dipole_setflag[itype];