From ef2bb14bab4b7e7a2a0c30e9cffb9dd25829e683 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Mon, 2 Jul 2012 13:59:09 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@8454 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/atom.cpp | 2 +- src/replicate.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/atom.cpp b/src/atom.cpp index 75203efdbd..61555ab21d 100644 --- a/src/atom.cpp +++ b/src/atom.cpp @@ -601,7 +601,7 @@ void Atom::data_atoms(int n, char *buf) if (imageflag) imagedata = (((tagint) atoi(values[iptr+2]) + IMGMAX & IMGMASK) << IMG2BITS) | - (((tagint) atoi(values[iptr+1]) + IMGMASK & IMGMASK) << IMGBITS) | + (((tagint) atoi(values[iptr+1]) + IMGMAX & IMGMASK) << IMGBITS) | (atoi(values[iptr]) + IMGMASK & IMGMASK); else imagedata = ((tagint) IMGMAX << IMG2BITS) | ((tagint) IMGMAX << IMGBITS) | IMGMAX; diff --git a/src/replicate.cpp b/src/replicate.cpp index 0110659c54..37696298d1 100644 --- a/src/replicate.cpp +++ b/src/replicate.cpp @@ -279,7 +279,7 @@ void Replicate::command(int narg, char **arg) m = 0; while (m < n) { image = ((tagint) IMGMAX << IMG2BITS) | - ((tagint) IMGMASK << IMGBITS) | IMGMAX; + ((tagint) IMGMAX << IMGBITS) | IMGMAX; if (triclinic == 0) { x[0] = buf[m+1] + ix*old_xprd; x[1] = buf[m+2] + iy*old_yprd;