aboutsummaryrefslogtreecommitdiff
path: root/src/SetupGroup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/SetupGroup.c')
-rw-r--r--src/SetupGroup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SetupGroup.c b/src/SetupGroup.c
index fa966d8..f91172c 100644
--- a/src/SetupGroup.c
+++ b/src/SetupGroup.c
@@ -139,7 +139,7 @@ int PUGH_SetupArrayGroup(pGH *newGH,
*/
for(i = 0 ; i < dim; i++)
{
- if((!nprocs[i]) && (nsize[i] <= 2*ghostsize[i]+1))
+ if((!nprocs[i]) && (abs(nsize[i]) <= 2*ghostsize[i]+1))
{
nprocs[i] = 1;
}