git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@2330 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -14,8 +14,8 @@
|
||||
#include "string.h"
|
||||
#include "compute_centro_atom.h"
|
||||
#include "atom.h"
|
||||
#include "modify.h"
|
||||
#include "update.h"
|
||||
#include "modify.h"
|
||||
#include "neighbor.h"
|
||||
#include "neigh_list.h"
|
||||
#include "neigh_request.h"
|
||||
@ -27,8 +27,6 @@
|
||||
|
||||
using namespace LAMMPS_NS;
|
||||
|
||||
#define INVOKED_PERATOM 4
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
ComputeCentroAtom::ComputeCentroAtom(LAMMPS *lmp, int narg, char **arg) :
|
||||
@ -59,6 +57,9 @@ ComputeCentroAtom::~ComputeCentroAtom()
|
||||
|
||||
void ComputeCentroAtom::init()
|
||||
{
|
||||
if (force->pair == NULL)
|
||||
error->all("Compute centro/atom requires a pair style be defined");
|
||||
|
||||
int count = 0;
|
||||
for (int i = 0; i < modify->ncompute; i++)
|
||||
if (strcmp(modify->compute[i]->style,"centro/atom") == 0) count++;
|
||||
@ -91,7 +92,7 @@ void ComputeCentroAtom::compute_peratom()
|
||||
int *ilist,*jlist,*numneigh,**firstneigh;
|
||||
double pairs[66];
|
||||
|
||||
invoked |= INVOKED_PERATOM;
|
||||
invoked_peratom = update->ntimestep;
|
||||
|
||||
// grow centro array if necessary
|
||||
|
||||
|
||||
Reference in New Issue
Block a user