forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@1146 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
bcb637765a
commit
4327641cf8
|
@ -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]);
|
||||
|
|
Loading…
Reference in New Issue