Merge pull request #684 from irisTa56/bugfix-in-domain.cpp

Bugfix for checking image flags
This commit is contained in:
Steve Plimpton
2017-10-09 08:30:48 -06:00
committed by GitHub

View File

@ -772,7 +772,7 @@ void Domain::image_check()
delz = unwrap[i][2] - unwrap[k][2]; delz = unwrap[i][2] - unwrap[k][2];
if (xperiodic && delx > xprd_half) flag = 1; if (xperiodic && delx > xprd_half) flag = 1;
if (xperiodic && dely > yprd_half) flag = 1; if (yperiodic && dely > yprd_half) flag = 1;
if (dimension == 3 && zperiodic && delz > zprd_half) flag = 1; if (dimension == 3 && zperiodic && delz > zprd_half) flag = 1;
if (!xperiodic && delx > xprd) flag = 1; if (!xperiodic && delx > xprd) flag = 1;
if (!yperiodic && dely > yprd) flag = 1; if (!yperiodic && dely > yprd) flag = 1;