git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@5274 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -47,6 +47,7 @@ int FixExternal::setmask()
|
||||
{
|
||||
int mask = 0;
|
||||
mask |= POST_FORCE;
|
||||
mask |= MIN_POST_FORCE;
|
||||
return mask;
|
||||
}
|
||||
|
||||
@ -66,6 +67,13 @@ void FixExternal::setup(int vflag)
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
void FixExternal::min_setup(int vflag)
|
||||
{
|
||||
post_force(vflag);
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
void FixExternal::post_force(int vflag)
|
||||
{
|
||||
if (atom->nlocal > nmax) {
|
||||
@ -94,6 +102,13 @@ void FixExternal::post_force(int vflag)
|
||||
}
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
void FixExternal::min_post_force(int vflag)
|
||||
{
|
||||
post_force(vflag);
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
external caller sets a callback function to invoke in post_force()
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
Reference in New Issue
Block a user