add extract() function to angle_mesocnt.cpp

This commit is contained in:
Evangelos Voyiatzis
2024-10-14 11:30:20 +02:00
committed by GitHub
parent 1a6544a04c
commit 6478cd98e9

View File

@ -396,3 +396,14 @@ double AngleMesoCNT::single(int type, int i1, int i2, int i3)
else
return kb[type] * dtheta + thetab[type] * (kh[type] * thetab[type] - kb[type]);
}
/* ----------------------------------------------------------------------
return ptr to internal members upon request
------------------------------------------------------------------------ */
void *AngleMesoCNT::extract(const char *str, int &dim)
{
dim = 1;
if (strcmp(str, "theta0") == 0) return (void *) theta0;
return nullptr;
}