Added atom map into example, enforce atom map added to fix_numdiff, added error statement to fix_numdiff.h
This commit is contained in:
@ -3,6 +3,7 @@
|
|||||||
units metal
|
units metal
|
||||||
atom_style atomic
|
atom_style atomic
|
||||||
|
|
||||||
|
atom_modify map yes
|
||||||
lattice fcc 5.358000
|
lattice fcc 5.358000
|
||||||
region box block 0 6 0 6 0 6
|
region box block 0 6 0 6 0 6
|
||||||
create_box 1 box
|
create_box 1 box
|
||||||
|
|||||||
@ -72,6 +72,9 @@ FixNumDiff::FixNumDiff(LAMMPS *lmp, int narg, char **arg) :
|
|||||||
temp_x = NULL;
|
temp_x = NULL;
|
||||||
temp_f = NULL;
|
temp_f = NULL;
|
||||||
|
|
||||||
|
if (atom->map_style == 0)
|
||||||
|
error->all(FLERR,"Fix_numdiff requires an atom map, see atom_modify");
|
||||||
|
|
||||||
// perform initial allocation of atom-based arrays
|
// perform initial allocation of atom-based arrays
|
||||||
// zero numdiff_forces since dump may access it on timestep 0
|
// zero numdiff_forces since dump may access it on timestep 0
|
||||||
// zero numdiff_forces since a variable may access it before first run
|
// zero numdiff_forces since a variable may access it before first run
|
||||||
|
|||||||
@ -73,6 +73,10 @@ Self-explanatory. Check the input script syntax and compare to the
|
|||||||
documentation for the command. You can use -echo screen as a
|
documentation for the command. You can use -echo screen as a
|
||||||
command-line option when running LAMMPS to see the offending line.
|
command-line option when running LAMMPS to see the offending line.
|
||||||
|
|
||||||
|
E: Fix_numdiff requires an atom map, see atom_modify
|
||||||
|
|
||||||
|
Self-explanatory.
|
||||||
|
|
||||||
E: Compute ID for fix numdiff does not exist
|
E: Compute ID for fix numdiff does not exist
|
||||||
|
|
||||||
Self-explanatory.
|
Self-explanatory.
|
||||||
|
|||||||
Reference in New Issue
Block a user