@@ -71,8 +71,8 @@ contains
7171 !> Initializes the values of various IBM variables, such as ghost points and image points.
7272 impure subroutine s_ibm_setup ()
7373
74- integer :: i, j, k
75- integer :: max_num_gps
74+ integer :: i, j, k
75+ integer (kind = 8 ) :: max_num_gps
7676
7777 call nvtxStartRange(" SETUP-IBM-MODULE" )
7878
@@ -117,10 +117,10 @@ contains
117117 ! find the number of ghost points and set them to be the maximum total across ranks
118118 call s_find_num_ghost_points(num_gps)
119119 if (moving_immersed_boundary_flag) then
120- call s_mpi_allreduce_integer_sum(num_gps, max_num_gps)
121- max_num_gps = min (max_num_gps* 2 , (m + 1 ) * (n + 1 ) * (p + 1 ))
120+ call s_mpi_allreduce_integer_sum(int ( num_gps, 8 ) , max_num_gps)
121+ max_num_gps = min (max_num_gps* 2_8 , int (m + 1 , 8 ) * int (n + 1 , 8 ) * int (p + 1 , 8 ))
122122 else
123- max_num_gps = num_gps
123+ max_num_gps = int ( num_gps, 8 )
124124 end if
125125
126126 ! set the size of the ghost point arrays to be the amount of points total, plus a factor of 2 buffer
@@ -1068,7 +1068,8 @@ contains
10681068 subroutine s_compute_centroid_offset (ib_marker )
10691069
10701070 integer , intent (in ) :: ib_marker
1071- integer :: i, j, k, num_cells, num_cells_local, decoded_gbl_id
1071+ integer :: i, j, k, num_cells_local, decoded_gbl_id
1072+ integer (kind= 8 ) :: num_cells
10721073 real (wp), dimension (1 :3 ) :: center_of_mass, center_of_mass_local
10731074
10741075 ! Offset only needs to be computes for specific geometries
@@ -1095,7 +1096,7 @@ contains
10951096 end do
10961097
10971098 ! reduce the mass contribution over all MPI ranks and compute COM
1098- call s_mpi_allreduce_integer_sum(num_cells_local, num_cells)
1099+ call s_mpi_allreduce_integer_sum(int ( num_cells_local, 8 ) , num_cells)
10991100 if (num_cells /= 0 ) then
11001101 call s_mpi_allreduce_sum(center_of_mass_local(1 ), center_of_mass(1 ))
11011102 call s_mpi_allreduce_sum(center_of_mass_local(2 ), center_of_mass(2 ))
0 commit comments