1 /* -*- c++ -*- ---------------------------------------------------------- 2 LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator 3 https://www.lammps.org/, Sandia National Laboratories 4 Steve Plimpton, sjplimp@sandia.gov 5 6 Copyright (2003) Sandia Corporation. Under the terms of Contract 7 DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains 8 certain rights in this software. This software is distributed under 9 the GNU General Public License. 10 11 See the README file in the top-level LAMMPS directory. 12 ------------------------------------------------------------------------- */ 13 14 #ifdef IMPROPER_CLASS 15 // clang-format off 16 ImproperStyle(distharm,ImproperDistHarm); 17 // clang-format on 18 #else 19 20 #ifndef LMP_IMPROPER_DISTHARM_H 21 #define LMP_IMPROPER_DISTHARM_H 22 23 #include "improper.h" 24 25 namespace LAMMPS_NS { 26 27 class ImproperDistHarm : public Improper { 28 public: 29 ImproperDistHarm(class LAMMPS *); 30 ~ImproperDistHarm(); 31 void compute(int, int); 32 void coeff(int, char **); 33 void write_restart(FILE *); 34 void read_restart(FILE *); 35 36 private: 37 double *k, *chi; 38 39 void allocate(); 40 }; 41 42 } // namespace LAMMPS_NS 43 44 #endif 45 #endif 46