diff --git a/src/pair_buck_coul_cut.cpp b/src/pair_buck_coul_cut.cpp index 05b36d3620..579113c992 100644 --- a/src/pair_buck_coul_cut.cpp +++ b/src/pair_buck_coul_cut.cpp @@ -470,3 +470,13 @@ double PairBuckCoulCut::single(int i, int j, int itype, int jtype, } return eng; } + +/* ---------------------------------------------------------------------- */ + +void *PairBuckCoulCut::extract(const char *str, int &dim) +{ + dim = 2; + if (strcmp(str,"a") == 0) return (void *) a; + if (strcmp(str,"c") == 0) return (void *) c; + return nullptr; +}