From 2f764edadc0f7c10ff436c4eb09368f16b3a5c62 Mon Sep 17 00:00:00 2001 From: Evangelos Voyiatzis Date: Sun, 28 Feb 2021 11:30:12 +0100 Subject: [PATCH] Addition of extract method in PairBuckCoulCut cpp --- src/pair_buck_coul_cut.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) 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; +}