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

This commit is contained in:
sjplimp 2013-03-22 22:16:40 +00:00
parent 7ef747d8d5
commit 67503ebecc
1 changed files with 2 additions and 2 deletions

View File

@ -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;