diff --git a/src/compute_stress_atom.cpp b/src/compute_stress_atom.cpp index e93a468670..f640698700 100644 --- a/src/compute_stress_atom.cpp +++ b/src/compute_stress_atom.cpp @@ -69,7 +69,7 @@ ComputeStressAtom::ComputeStressAtom(LAMMPS *lmp, int narg, char **arg) : else if (strcmp(arg[iarg],"virial") == 0) { pairflag = 1; bondflag = angleflag = dihedralflag = improperflag = 1; - fixflag = 1; + kspaceflag = fixflag = 1; } else error->all(FLERR,"Illegal compute stress/atom command"); iarg++; }