From b4c58c98283003dbe6b1ffd22d2deced27ed5c20 Mon Sep 17 00:00:00 2001 From: jrgissing Date: Fri, 22 Apr 2022 21:19:53 -0400 Subject: [PATCH] actually reset image flags --- src/replicate.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/replicate.cpp b/src/replicate.cpp index bc9939ce2c..2f65aa7e46 100644 --- a/src/replicate.cpp +++ b/src/replicate.cpp @@ -110,7 +110,8 @@ void Replicate::command(int narg, char **arg) // reset image flags for bondlist option if (bondlist_flag) for (i=0; inlocal; ++i) - atom->image[i] = 0; + atom->image[i] = ((imageint) IMGMAX << IMG2BITS) | + ((imageint) IMGMAX << IMGBITS) | IMGMAX; // check image flags maximum extent // only efficient small image flags compared to new system