@@ -135,9 +135,7 @@ subroutine s_check_inputs()
135135 elseif (n == 0 .and. p > 0 ) then
136136 call s_mpi_abort(' Unsupported choice of the combination of ' // &
137137 ' values for n and p. Exiting ...' )
138- elseif ((m + 1 )* (n + 1 )* (p + 1 ) &
139- < &
140- 2 ** (min (1 , m) + min (1 , n) + min (1 , p))* num_procs) then
138+ elseif (nGlobal < 2 ** (min (1 , m) + min (1 , n) + min (1 , p))* num_procs) then
141139 call s_mpi_abort(' Unsupported choice of the combination of ' // &
142140 ' values for num_procs, m, n and p. ' // &
143141 ' Exiting ...' )
@@ -408,9 +406,7 @@ subroutine s_check_inputs()
408406 elseif (p > 0 .and. p + 1 < weno_order) then
409407 call s_mpi_abort(' Unsupported choice of the combination of ' // &
410408 ' values for p and weno_order. Exiting ...' )
411- elseif ((m + 1 )* (n + 1 )* (p + 1 ) &
412- < &
413- weno_order** (min (1 , m) + min (1 , n) + min (1 , p))* num_procs) &
409+ elseif (nGlobal < weno_order** (min (1 , m) + min (1 , n) + min (1 , p))* num_procs) &
414410 then
415411 call s_mpi_abort(' Unsupported choice of the combination of ' // &
416412 ' values for num_procs, m, n, p and ' // &
0 commit comments