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:
athomps
2010-06-30 15:15:06 +00:00
parent 77641bfdcc
commit 6f7c86254b

View File

@ -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;