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

This commit is contained in:
sjplimp 2010-12-08 14:40:45 +00:00
parent 0ef38a94c9
commit 5df9709d9f
1 changed files with 3 additions and 5 deletions

View File

@ -638,12 +638,10 @@ void Modify::add_fix(int narg, char **arg)
else error->all("Invalid fix style");
// if fix is new, set it's mask values and increment nfix
// set fix mask values and increment nfix (if new)
if (newflag) {
fmask[ifix] = fix[ifix]->setmask();
nfix++;
}
fmask[ifix] = fix[ifix]->setmask();
if (newflag) nfix++;
// check if Fix is in restart_global list
// if yes, pass state info to the Fix so it can reset itself