git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@2330 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -15,6 +15,7 @@
|
||||
#include "string.h"
|
||||
#include "compute_stress_atom.h"
|
||||
#include "atom.h"
|
||||
#include "update.h"
|
||||
#include "comm.h"
|
||||
#include "force.h"
|
||||
#include "pair.h"
|
||||
@ -29,8 +30,6 @@
|
||||
|
||||
using namespace LAMMPS_NS;
|
||||
|
||||
#define INVOKED_PERATOM 4
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
ComputeStressAtom::ComputeStressAtom(LAMMPS *lmp, int narg, char **arg) :
|
||||
@ -85,7 +84,9 @@ void ComputeStressAtom::compute_peratom()
|
||||
{
|
||||
int i,j;
|
||||
|
||||
invoked |= INVOKED_PERATOM;
|
||||
invoked_peratom = update->ntimestep;
|
||||
if (update->vflag_atom != invoked_peratom)
|
||||
error->all("Per-atom virial was not tallied on needed timestep");
|
||||
|
||||
// grow local stress array if necessary
|
||||
|
||||
|
||||
Reference in New Issue
Block a user