From 3d58daf70fbe2d982205902cb046551850997bbc Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Fri, 12 Jul 2019 17:10:35 +0100 Subject: [PATCH] Safety check --- Grid/stencil/Stencil.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Grid/stencil/Stencil.h b/Grid/stencil/Stencil.h index 0adf15f1..16760415 100644 --- a/Grid/stencil/Stencil.h +++ b/Grid/stencil/Stencil.h @@ -766,7 +766,7 @@ public: int permute_slice=0; if(permute_dim){ - int wrap = sshift/rd; + int wrap = sshift/rd; wrap=wrap % ly; // but it is local anyway int num = sshift%rd; if ( x< rd-num ) permute_slice=wrap; else permute_slice = (wrap+1)%ly;