diff --git a/src/partition_allocator/partition_allocator.c b/src/partition_allocator/partition_allocator.c
index 58cd86d96736e5cc4d6fb5a1fe5db197a8715aca..72c9385ddfed18d332d8fbd446e0926568d44b4e 100644
--- a/src/partition_allocator/partition_allocator.c
+++ b/src/partition_allocator/partition_allocator.c
@@ -632,8 +632,9 @@ extern void pa_init(node_info_msg_t *node_info_ptr)
 				DIM_SIZE[X] = temp;
 #endif
 		}
-#ifdef HAVE_BGL
+
 		DIM_SIZE[X]++;
+#ifdef HAVE_BGL
 		DIM_SIZE[Y]++;
 		DIM_SIZE[Z]++;
 #endif
@@ -682,7 +683,12 @@ extern void pa_init(node_info_msg_t *node_info_ptr)
 
 	if(!pa_system_ptr->num_of_proc)
 		pa_system_ptr->num_of_proc = 
-			DIM_SIZE[X] * DIM_SIZE[Y] * DIM_SIZE[Z];
+			DIM_SIZE[X] 
+#ifdef HAVE_BGL
+			* DIM_SIZE[Y] 
+			* DIM_SIZE[Z]
+#endif
+			;
 
 		
 	_create_pa_system();