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(hybrid,ImproperHybrid);
17 // clang-format on
18 #else
19 
20 #ifndef LMP_IMPROPER_HYBRID_H
21 #define LMP_IMPROPER_HYBRID_H
22 
23 #include "improper.h"
24 
25 namespace LAMMPS_NS {
26 
27 class ImproperHybrid : public Improper {
28  public:
29   int nstyles;          // # of different improper styles
30   Improper **styles;    // class list for each Improper style
31   char **keywords;      // keyword for each improper style
32 
33   ImproperHybrid(class LAMMPS *);
34   ~ImproperHybrid();
35   void init_style();
36   void compute(int, int);
37   void settings(int, char **);
38   void coeff(int, char **);
39   void write_restart(FILE *);
40   void read_restart(FILE *);
41   double memory_usage();
42 
43  private:
44   int *map;    // which style each improper type points to
45 
46   int *nimproperlist;     // # of impropers in sub-style improperlists
47   int *maximproper;       // max # of impropers sub-style lists can store
48   int ***improperlist;    // improperlist for each sub-style
49 
50   void allocate();
51 };
52 
53 }    // namespace LAMMPS_NS
54 
55 #endif
56 #endif
57 
58 /* ERROR/WARNING messages:
59 
60 E: Illegal ... command
61 
62 Self-explanatory.  Check the input script syntax and compare to the
63 documentation for the command.  You can use -echo screen as a
64 command-line option when running LAMMPS to see the offending line.
65 
66 E: Improper style hybrid cannot use same improper style twice
67 
68 Self-explanatory.
69 
70 E: Improper style hybrid cannot have hybrid as an argument
71 
72 Self-explanatory.
73 
74 E: Improper style hybrid cannot have none as an argument
75 
76 Self-explanatory.
77 
78 E: Improper coeff for hybrid has invalid style
79 
80 Improper style hybrid uses another improper style as one of its
81 coefficients.  The improper style used in the improper_coeff command
82 or read from a restart file is not recognized.
83 
84 */
85