git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@12996 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -52,6 +52,7 @@ FixAdaptFEP::FixAdaptFEP(LAMMPS *lmp, int narg, char **arg) :
|
||||
if (nevery < 0) error->all(FLERR,"Illegal fix adapt/fep command");
|
||||
|
||||
dynamic_group_allow = 1;
|
||||
create_attribute = 1;
|
||||
|
||||
// count # of adaptations
|
||||
|
||||
@ -583,3 +584,13 @@ void FixAdaptFEP::restore_settings()
|
||||
if (anypair) force->pair->reinit();
|
||||
if (chgflag && force->kspace) force->kspace->qsum_qsq();
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
initialize one atom's storage values, called when atom is created
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
void FixAdaptFEP::set_arrays(int i)
|
||||
{
|
||||
if (fix_diam) fix_diam->vstore[i] = atom->radius[i];
|
||||
if (fix_chg) fix_chg->vstore[i] = atom->q[i];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user