From 3237d21989d2a6bcdc9e47294d9d752b7191b1d1 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Tue, 5 Nov 2013 15:52:15 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@10966 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/atom.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/atom.cpp b/src/atom.cpp index 06c919fb3b..67ea7daeb8 100644 --- a/src/atom.cpp +++ b/src/atom.cpp @@ -1433,7 +1433,7 @@ void Atom::delete_callback(const char *id, int flag) int match; for (match = 0; match < nextra_restart; match++) if (extra_restart[match] == ifix) break; - for (int i = ifix; i < nextra_restart-1; i++) + for (int i = match; i < nextra_restart-1; i++) extra_restart[i] = extra_restart[i+1]; nextra_restart--; @@ -1441,7 +1441,7 @@ void Atom::delete_callback(const char *id, int flag) int match; for (match = 0; match < nextra_border; match++) if (extra_border[match] == ifix) break; - for (int i = ifix; i < nextra_border-1; i++) + for (int i = match; i < nextra_border-1; i++) extra_border[i] = extra_border[i+1]; nextra_border--; }