forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@9707 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
7ef747d8d5
commit
67503ebecc
|
@ -110,13 +110,13 @@ void FixExternal::post_force(int vflag)
|
|||
// invoke the callback in driver program
|
||||
// it will fill fexternal with forces
|
||||
|
||||
if (mode == PF_CALLBACK && ntimestep & ncall == 0)
|
||||
if (mode == PF_CALLBACK && ntimestep % ncall == 0)
|
||||
(this->callback)(ptr_caller,update->ntimestep,
|
||||
atom->nlocal,atom->tag,atom->x,fexternal);
|
||||
|
||||
// add forces from fexternal to atoms in group
|
||||
|
||||
if (ntimestep & napply == 0) {
|
||||
if (ntimestep % napply == 0) {
|
||||
double **f = atom->f;
|
||||
int *mask = atom->mask;
|
||||
int nlocal = atom->nlocal;
|
||||
|
|
Loading…
Reference in New Issue