Update bond_fene.cpp

This commit is contained in:
Evangelos Voyiatzis 2020-04-01 14:51:23 +02:00 committed by GitHub
parent bd7deebca2
commit 9446f8f780
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -272,3 +272,13 @@ double BondFENE::single(int type, double rsq, int /*i*/, int /*j*/,
return eng;
}
/* ---------------------------------------------------------------------- */
void *BondFENE::extract( char *str, int &dim )
{
dim = 1;
if (strcmp(str,"kappa")==0) return (void*) k;
if (strcmp(str,"r0")==0) return (void*) r0;
return NULL;
}