@@ -291,7 +291,6 @@ contains
291291 !! single process, within its assigned section of the computational domain. Finally, note that the global extrema values are
292292 !! only bookkeept on the rank 0 processor.
293293 impure subroutine s_mpi_reduce_stability_criteria_extrema (icfl_max_loc , vcfl_max_loc , Rc_min_loc , icfl_max_glb , vcfl_max_glb , &
294-
295294 & Rc_min_glb )
296295
297296 real (wp), intent (in ) :: icfl_max_loc
@@ -367,13 +366,13 @@ contains
367366 !> Reduce a local integer value to its global sum across all MPI ranks.
368367 impure subroutine s_mpi_allreduce_integer_sum (var_loc , var_glb )
369368
370- integer , intent (in ) :: var_loc
371- integer , intent (out ) :: var_glb
369+ integer (kind = 8 ) , intent (in ) :: var_loc
370+ integer (kind = 8 ) , intent (out ) :: var_glb
372371
373372#ifdef MFC_MPI
374373 integer :: ierr !< Generic flag used to identify and report MPI errors
375374
376- call MPI_ALLREDUCE(var_loc, var_glb, 1 , MPI_INTEGER , MPI_SUM, MPI_COMM_WORLD, ierr)
375+ call MPI_ALLREDUCE(var_loc, var_glb, 1 , MPI_INTEGE R8 , MPI_SUM, MPI_COMM_WORLD, ierr)
377376#else
378377 var_glb = var_loc
379378#endif
@@ -1444,7 +1443,6 @@ contains
14441443
14451444 if (mpi_dir == 1 ) then
14461445 if (pbc_loc == - 1 ) then ! PBC at the beginning
1447-
14481446 if (bc_x%end >= 0 ) then ! PBC at the beginning and end
14491447 call MPI_SENDRECV(dx(m - buff_size + 1 ), buff_size, mpi_p, bc_x%end, 0 , dx(- buff_size), buff_size, mpi_p, &
14501448 & bc_x%beg, 0 , MPI_COMM_WORLD, MPI_STATUS_IGNORE, ierr)
@@ -1463,7 +1461,6 @@ contains
14631461 end if
14641462 else if (mpi_dir == 2 ) then
14651463 if (pbc_loc == - 1 ) then ! PBC at the beginning
1466-
14671464 if (bc_y%end >= 0 ) then ! PBC at the beginning and end
14681465 call MPI_SENDRECV(dy(n - buff_size + 1 ), buff_size, mpi_p, bc_y%end, 0 , dy(- buff_size), buff_size, mpi_p, &
14691466 & bc_y%beg, 0 , MPI_COMM_WORLD, MPI_STATUS_IGNORE, ierr)
@@ -1482,7 +1479,6 @@ contains
14821479 end if
14831480 else
14841481 if (pbc_loc == - 1 ) then ! PBC at the beginning
1485-
14861482 if (bc_z%end >= 0 ) then ! PBC at the beginning and end
14871483 call MPI_SENDRECV(dz(p - buff_size + 1 ), buff_size, mpi_p, bc_z%end, 0 , dz(- buff_size), buff_size, mpi_p, &
14881484 & bc_z%beg, 0 , MPI_COMM_WORLD, MPI_STATUS_IGNORE, ierr)
0 commit comments