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_pe.h"
|
||||
#include "atom.h"
|
||||
#include "update.h"
|
||||
#include "force.h"
|
||||
#include "pair.h"
|
||||
#include "bond.h"
|
||||
@ -28,8 +29,6 @@
|
||||
|
||||
using namespace LAMMPS_NS;
|
||||
|
||||
#define INVOKED_SCALAR 1
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
ComputePE::ComputePE(LAMMPS *lmp, int narg, char **arg) :
|
||||
@ -73,7 +72,9 @@ ComputePE::ComputePE(LAMMPS *lmp, int narg, char **arg) :
|
||||
|
||||
double ComputePE::compute_scalar()
|
||||
{
|
||||
invoked |= INVOKED_SCALAR;
|
||||
invoked_scalar = update->ntimestep;
|
||||
if (update->eflag_global != invoked_scalar)
|
||||
error->all("Energy was not tallied on needed timestep");
|
||||
|
||||
double one = 0.0;
|
||||
if (pairflag && force->pair)
|
||||
|
||||
Reference in New Issue
Block a user