/* -*- c++ -*- ---------------------------------------------------------- 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 certain rights in this software. This software is distributed under the GNU General Public License. See the README file in the top-level LAMMPS directory. ------------------------------------------------------------------------- */ #ifdef BOND_CLASS BondStyle(cell,BondCell) #else #ifndef LMP_BOND_CELL_H #define LMP_BOND_CELL_H #include "bond.h" namespace LAMMPS_NS { class BondCell : public Bond { public: BondCell(class LAMMPS *); virtual ~BondCell(); virtual void compute(int, int); virtual void coeff(int, char **); virtual void *extract(char *, int &); double equilibrium_distance(int); void write_restart(FILE *); virtual void read_restart(FILE *); void write_data(FILE *); double single(int, double, int, int, double &); protected: int me,nprocs; double *alpha,*r0; double **avomega; int maxmol; int ncell; int *nCELL; // # of atoms in each cell int *mol2cell; // convert mol-ID to cell index int *cell2mol; // convert cell index to mol-ID int *cell; // which body each atom is part of (-1 if none) virtual void allocate(); }; } #endif #endif /* ERROR/WARNING messages: E: Incorrect args for bond coefficients Self-explanatory. Check the input script or data file. */