Made fix adapt work with bond_harmonic.

This commit is contained in:
Stefan Paquay
2017-04-04 12:35:26 -04:00
parent ae56b9ad89
commit 28e86917a0
5 changed files with 153 additions and 5 deletions

View File

@ -292,3 +292,14 @@ double Bond::memory_usage()
bytes += comm->nthreads*maxvatom*6 * sizeof(double);
return bytes;
}
/* -----------------------------------------------------------------------
Reset all type-based bond params via init.
-------------------------------------------------------------------------- */
void Bond::reinit()
{
if (!reinitflag)
error->all(FLERR,"Fix adapt interface to this bond style not supported");
init();
}