add support for extracting r0 array to bond style zero

This commit is contained in:
Axel Kohlmeyer
2020-05-18 19:35:50 -04:00
parent 6b1dbe2393
commit 4ac7a26fe1
2 changed files with 10 additions and 2 deletions

View File

@ -144,8 +144,6 @@ void BondZero::write_data(FILE *fp)
fprintf(fp,"%d %g\n",i,r0[i]);
}
/* ---------------------------------------------------------------------- */
double BondZero::single(int /*type*/, double /*rsq*/, int /*i*/, int /*j*/,
@ -153,3 +151,12 @@ double BondZero::single(int /*type*/, double /*rsq*/, int /*i*/, int /*j*/,
{
return 0.0;
}
/* ---------------------------------------------------------------------- */
void *BondZero::extract(const char *str, int &dim)
{
dim = 1;
if (strcmp(str,"r0")==0) return (void*) r0;
return NULL;
}