implement extract() in pair_yukawa.cpp

This commit is contained in:
Evangelos Voyiatzis
2025-03-14 09:25:28 +01:00
committed by GitHub
parent b11672a99f
commit 419b18bd16

View File

@ -332,3 +332,12 @@ double PairYukawa::single(int /*i*/, int /*j*/, int itype, int jtype, double rsq
phi = a[itype][jtype] * screening * rinv - offset[itype][jtype];
return factor_lj * phi;
}
/* ---------------------------------------------------------------------- */
void *PairYukawa::extract(const char *str, int &dim)
{
dim = 2;
if (strcmp(str, "alpha") == 0) return (void *) a;
return nullptr;
}