git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@8226 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
|
||||
Copyright (2003) Sandia Corporation. Under the terms of Contract
|
||||
DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
|
||||
certain rights in this software. This software is distributed under
|
||||
certain rights in this software. This software is distributed under
|
||||
the GNU General Public License.
|
||||
|
||||
See the README file in the top-level LAMMPS directory.
|
||||
@ -56,7 +56,7 @@ int FixExternal::setmask()
|
||||
|
||||
void FixExternal::init()
|
||||
{
|
||||
if (callback == NULL)
|
||||
if (callback == NULL)
|
||||
error->all(FLERR,"Fix external callback function not set");
|
||||
}
|
||||
|
||||
@ -88,7 +88,7 @@ void FixExternal::post_force(int vflag)
|
||||
// it will fill fexternal with forces
|
||||
|
||||
(this->callback)(ptr_caller,update->ntimestep,
|
||||
atom->nlocal,atom->tag,atom->x,fexternal);
|
||||
atom->nlocal,atom->tag,atom->x,fexternal);
|
||||
|
||||
// add forces from fexternal to atoms in group
|
||||
|
||||
|
||||
Reference in New Issue
Block a user