@@ -45,10 +45,6 @@ module m_mpi_common
4545 integer(kind=8) :: halo_size
4646 $:GPU_DECLARE(create=' [halo_size]' )
4747
48- real(wp), allocatable, dimension(:, :), public :: domain_glb
49- $:GPU_DECLARE(create=' [domain_glb]' )
50- !! This variable holds the physical locations of the global domain bounds
51-
5248contains
5349
5450 !> The computation of parameters, the allocation of memory,
@@ -1892,45 +1888,11 @@ contains
18921888 end subroutine s_mpi_sendrecv_grid_variables_buffers
18931889#endif
18941890
1895- !> The goal of this subroutine is to determine the physical global domain bounds
1896- #ifndef MFC_POST_PROCESS
1897- impure subroutine s_mpi_global_domain_bounds
1898- @:ALLOCATE(domain_glb(num_dims, 2))
1899- #ifdef MFC_MPI
1900- call s_mpi_allreduce_min(x_domain%beg, domain_glb(1, 1))
1901- call s_mpi_allreduce_max(x_domain%end, domain_glb(1, 2))
1902- if (n > 0) then ! 2D
1903- call s_mpi_allreduce_min(y_domain%beg, domain_glb(2, 1))
1904- call s_mpi_allreduce_max(y_domain%end, domain_glb(2, 2))
1905- if (p > 0) then ! 3D
1906- call s_mpi_allreduce_min(z_domain%beg, domain_glb(3, 1))
1907- call s_mpi_allreduce_max(z_domain%end, domain_glb(3, 2))
1908- end if
1909- end if
1910- #else
1911- domain_glb(1, 1) = x_domain%beg
1912- domain_glb(1, 2) = x_domain%end
1913- if (n > 0) then ! 2D
1914- domain_glb(2, 1) = y_domain%beg
1915- domain_glb(2, 2) = y_domain%end
1916- if (p > 0) then ! 3D
1917- domain_glb(3, 1) = z_domain%beg
1918- domain_glb(3, 2) = z_domain%end
1919- end if
1920- end if
1921- #endif
1922- $:GPU_UPDATE(device=' [domain_glb]' )
1923- end subroutine s_mpi_global_domain_bounds
1924- #endif
1925-
19261891 !> Module deallocation and/or disassociation procedures
19271892 impure subroutine s_finalize_mpi_common_module
19281893
19291894#ifdef MFC_MPI
19301895 deallocate (buff_send, buff_recv)
1931- #ifndef MFC_POST_PROCESS
1932- @:DEALLOCATE(domain_glb)
1933- #endif
19341896#endif
19351897
19361898 end subroutine s_finalize_mpi_common_module
0 commit comments