From eb8c707f995cb75cfc4895d452c876442ae9fccd Mon Sep 17 00:00:00 2001 From: sjplimp Date: Thu, 5 Mar 2009 20:55:21 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@2623 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/compute_pressure.cpp | 3 +-- src/compute_stress_atom.cpp | 6 +++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/compute_pressure.cpp b/src/compute_pressure.cpp index 05ed1ac232..21f8b68499 100644 --- a/src/compute_pressure.cpp +++ b/src/compute_pressure.cpp @@ -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++; } } diff --git a/src/compute_stress_atom.cpp b/src/compute_stress_atom.cpp index 160f4b252e..08bfb03164 100644 --- a/src/compute_stress_atom.cpp +++ b/src/compute_stress_atom.cpp @@ -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++; } }