diff --git a/src/pair_hybrid.cpp b/src/pair_hybrid.cpp index 1493a8e165..a2aa82fe0e 100644 --- a/src/pair_hybrid.cpp +++ b/src/pair_hybrid.cpp @@ -605,6 +605,15 @@ double PairHybrid::init_one(int i, int j) return cutmax; } +/* ---------------------------------------------------------------------- + invoke setup for each sub-style +------------------------------------------------------------------------- */ + +void PairHybrid::setup() +{ + for (int m = 0; m < nstyles; m++) styles[m]->setup(); +} + /* ---------------------------------------------------------------------- combine sub-style neigh list requests and create new ones if needed ------------------------------------------------------------------------- */ diff --git a/src/pair_hybrid.h b/src/pair_hybrid.h index 1be07d1efe..006c70664a 100644 --- a/src/pair_hybrid.h +++ b/src/pair_hybrid.h @@ -39,6 +39,7 @@ class PairHybrid : public Pair { virtual void coeff(int, char **); void init_style(); double init_one(int, int); + void setup(); void write_restart(FILE *); void read_restart(FILE *); double single(int, int, int, int, double, double, double, double &);