Unverified Commit 5bc7a244 authored by Evangelos Voyiatzis's avatar Evangelos Voyiatzis Committed by GitHub
Browse files

Update bond_class2.cpp

parent 566e110e
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -220,3 +220,12 @@ double BondClass2::single(int type, double rsq, int /*i*/, int /*j*/, double &ff
  else fforce = 0.0;
  return (k2[type]*dr2 + k3[type]*dr3 + k4[type]*dr4);
}

/* ---------------------------------------------------------------------- */

void *BondClass2::extract( char *str, int &dim )
{
  dim = 1;
  if (strcmp(str,"r0")==0) return (void*) r0;
  return NULL;
}