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

This commit is contained in:
pscrozi 2007-11-05 23:34:44 +00:00
parent bcb637765a
commit 4327641cf8
1 changed files with 4 additions and 0 deletions

View File

@ -58,6 +58,10 @@ FixTMD::FixTMD(LAMMPS *lmp, int narg, char **arg) :
grow_arrays(atom->nmax);
atom->add_callback(0);
// make sure an atom map exists before reading in target coordinates
if (atom->map_style == 0)
error->all("Cannot use fix TMD unless atom map exists");
// read from arg[4] and store coordinates of final target in xf
readfile(arg[4]);