2009-01-20 01:25:38 +08:00
|
|
|
/* ----------------------------------------------------------------------
|
|
|
|
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
|
|
|
|
http://lammps.sandia.gov, Sandia National Laboratories
|
|
|
|
Steve Plimpton, sjplimp@sandia.gov
|
|
|
|
|
|
|
|
Copyright (2003) Sandia Corporation. Under the terms of Contract
|
|
|
|
DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
|
2010-01-13 00:34:35 +08:00
|
|
|
certain rights in this software. This software is distributed under
|
2009-01-20 01:25:38 +08:00
|
|
|
the GNU General Public License.
|
|
|
|
|
|
|
|
See the README file in the top-level LAMMPS directory.
|
|
|
|
------------------------------------------------------------------------- */
|
|
|
|
|
2010-01-12 09:37:48 +08:00
|
|
|
#ifdef COMPUTE_CLASS
|
|
|
|
|
|
|
|
ComputeStyle(cna/atom,ComputeCNAAtom)
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#ifndef LMP_COMPUTE_CNA_ATOM_H
|
|
|
|
#define LMP_COMPUTE_CNA_ATOM_H
|
2009-01-20 01:25:38 +08:00
|
|
|
|
|
|
|
#include "compute.h"
|
|
|
|
|
|
|
|
namespace LAMMPS_NS {
|
|
|
|
|
|
|
|
class ComputeCNAAtom : public Compute {
|
|
|
|
public:
|
|
|
|
ComputeCNAAtom(class LAMMPS *, int, char **);
|
|
|
|
~ComputeCNAAtom();
|
|
|
|
void init();
|
|
|
|
void init_list(int, class NeighList *);
|
|
|
|
void compute_peratom();
|
|
|
|
double memory_usage();
|
|
|
|
|
|
|
|
private:
|
|
|
|
int nmax;
|
|
|
|
double cutsq;
|
|
|
|
class NeighList *list;
|
|
|
|
int **nearest;
|
|
|
|
int *nnearest;
|
|
|
|
double *pattern;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
2010-01-12 09:37:48 +08:00
|
|
|
#endif
|