aboutsummaryrefslogtreecommitdiff
path: root/src/SetupPGH.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/SetupPGH.c')
-rw-r--r--src/SetupPGH.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SetupPGH.c b/src/SetupPGH.c
index 64e4d43..50538b4 100644
--- a/src/SetupPGH.c
+++ b/src/SetupPGH.c
@@ -85,7 +85,7 @@ pGH *PUGH_SetupPGH(void *callerid,
*/
for(i = 0 ; i < idim; i++)
{
- if((!nprocs[i]) && (nsize[i] <= 2*nghostzones[i]+1))
+ if((!nprocs[i]) && (abs(nsize[i]) <= 2*nghostzones[i]+1))
{
nprocs[i] = 1;
}