From 6c2ea29606c6196f1a24394bbf0ea81fafff713a Mon Sep 17 00:00:00 2001 From: James E McClure Date: Sun, 8 Apr 2018 10:24:38 -0400 Subject: [PATCH] updating segmented pp --- tests/lbpm_segmented_pp.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/lbpm_segmented_pp.cpp b/tests/lbpm_segmented_pp.cpp index 9911c8de..2672a2a3 100644 --- a/tests/lbpm_segmented_pp.cpp +++ b/tests/lbpm_segmented_pp.cpp @@ -32,12 +32,12 @@ double ReadFromBlock( char *ID, int iproc, int jproc, int kproc, int Nx, int Ny, int x,y,z,i,j,k; // Get the list of blocks that contain the local rank - int b0x =iproc*(Nx-2)/1024-1; - int b0y =jproc*(Ny-2)/1024-1; - int b0z =kproc*(Nz-2)/1024-1; - int Bx =iproc*(Nx-2)/1024 +1; - int By =jproc*(Ny-2)/1024 +1; - int Bz =kproc*(Nz-2)/1024 +1; + int b0x =iproc*(Nx-2)/1024; + int b0y =jproc*(Ny-2)/1024; + int b0z =kproc*(Nz-2)/1024; + int Bx =iproc*(Nx-2)/1024; + int By =jproc*(Ny-2)/1024; + int Bz =kproc*(Nz-2)/1024; // arrays to hold the strings char LocalRankFilename[40];