git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@5274 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp 2010-11-22 15:58:44 +00:00
parent 7bfa8bee60
commit cc9d61f406
2 changed files with 17 additions and 0 deletions

View File

@ -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()
------------------------------------------------------------------------- */

View File

@ -31,7 +31,9 @@ class FixExternal : public Fix {
int setmask();
void init();
void setup(int);
void min_setup(int);
void post_force(int);
void min_post_force(int);
typedef void (*FnPtr)(void *, int, int, int *, double **, double **);
void set_callback(FnPtr, void *);