forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@5274 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
7bfa8bee60
commit
cc9d61f406
|
@ -47,6 +47,7 @@ int FixExternal::setmask()
|
||||||
{
|
{
|
||||||
int mask = 0;
|
int mask = 0;
|
||||||
mask |= POST_FORCE;
|
mask |= POST_FORCE;
|
||||||
|
mask |= MIN_POST_FORCE;
|
||||||
return mask;
|
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)
|
void FixExternal::post_force(int vflag)
|
||||||
{
|
{
|
||||||
if (atom->nlocal > nmax) {
|
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()
|
external caller sets a callback function to invoke in post_force()
|
||||||
------------------------------------------------------------------------- */
|
------------------------------------------------------------------------- */
|
||||||
|
|
|
@ -31,7 +31,9 @@ class FixExternal : public Fix {
|
||||||
int setmask();
|
int setmask();
|
||||||
void init();
|
void init();
|
||||||
void setup(int);
|
void setup(int);
|
||||||
|
void min_setup(int);
|
||||||
void post_force(int);
|
void post_force(int);
|
||||||
|
void min_post_force(int);
|
||||||
|
|
||||||
typedef void (*FnPtr)(void *, int, int, int *, double **, double **);
|
typedef void (*FnPtr)(void *, int, int, int *, double **, double **);
|
||||||
void set_callback(FnPtr, void *);
|
void set_callback(FnPtr, void *);
|
||||||
|
|
Loading…
Reference in New Issue