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

This commit is contained in:
sjplimp 2009-03-05 20:55:21 +00:00
parent cb90e03944
commit eb8c707f99
2 changed files with 6 additions and 3 deletions

View File

@ -84,8 +84,7 @@ ComputePressure::ComputePressure(LAMMPS *lmp, int narg, char **arg) :
pairflag = 1;
bondflag = angleflag = dihedralflag = improperflag = 1;
kspaceflag = fixflag = 1;
}
else error->all("Illegal compute pressure command");
} else error->all("Illegal compute pressure command");
iarg++;
}
}

View File

@ -62,7 +62,11 @@ ComputeStressAtom::ComputeStressAtom(LAMMPS *lmp, int narg, char **arg) :
else if (strcmp(arg[iarg],"dihedral") == 0) dihedralflag = 1;
else if (strcmp(arg[iarg],"improper") == 0) improperflag = 1;
else if (strcmp(arg[iarg],"fix") == 0) fixflag = 1;
else error->all("Illegal compute stress/atom command");
else if (strcmp(arg[iarg],"virial") == 0) {
pairflag = 1;
bondflag = angleflag = dihedralflag = improperflag = 1;
fixflag = 1;
} else error->all("Illegal compute stress/atom command");
iarg++;
}
}