Added check on size of NATDEF
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@4363 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -251,6 +251,9 @@ void PairREAX::write_reax_positions()
|
||||
FORTRAN(rsmall, RSMALL).na = nlocal+nghost;
|
||||
FORTRAN(rsmall, RSMALL).na_local = nlocal;
|
||||
|
||||
if (nlocal+nghost > ReaxParams::nat)
|
||||
error->one("reax_defs.h::NATDEF too small");
|
||||
|
||||
jx = 0;
|
||||
jy = ReaxParams::nat;
|
||||
jz = 2*ReaxParams::nat;
|
||||
|
||||
Reference in New Issue
Block a user