From 59a0c577db1d930bbc5e648fe9eb069d4dbc09db Mon Sep 17 00:00:00 2001 From: sjplimp Date: Mon, 13 Jan 2014 16:01:32 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@11236 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/domain.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/domain.cpp b/src/domain.cpp index 04f52d7d8d..47e5248dcb 100644 --- a/src/domain.cpp +++ b/src/domain.cpp @@ -655,6 +655,7 @@ void Domain::box_too_small_check() int *num_bond = atom->num_bond; int **bond_atom = atom->bond_atom; + int **bond_type = atom->bond_type; double **x = atom->x; int nlocal = atom->nlocal; @@ -666,7 +667,7 @@ void Domain::box_too_small_check() for (i = 0; i < nlocal; i++) for (j = 0; j < num_bond[i]; j++) { - if (bond_type[i][m] <= 0) continue; + if (bond_type[i][j] <= 0) continue; k = atom->map(bond_atom[i][j]); if (k == -1) { nmissing++;