Addition of extract method in PairBuckCoulCut cpp

This commit is contained in:
Evangelos Voyiatzis
2021-02-28 11:30:12 +01:00
committed by GitHub
parent 947fa67531
commit 2f764edadc

View File

@ -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;
}