@@ -84,6 +84,8 @@ contains
8484 integer :: i, j, k
8585 integer :: max_num_gps, max_num_inner_gps
8686
87+ call nvtxStartRange(" SETUP-IBM-MODULE" )
88+
8789 ! do all set up for moving immersed boundaries
8890 moving_immersed_boundary_flag = .false.
8991 do i = 1 , num_ibs
@@ -108,7 +110,7 @@ contains
108110 ib_markers%sf = 0._wp
109111 $:GPU_UPDATE(device= ' [ib_markers%sf]' )
110112 call s_apply_ib_patches(ib_markers)
111- ! call s_populate_ib_buffers()
113+ call s_populate_ib_buffers()
112114 $:GPU_UPDATE(host= ' [ib_markers%sf]' )
113115 do i = 1 , num_ibs
114116 if (patch_ib(i)%moving_ibm /= 0 ) call s_compute_centroid_offset(i) ! offsets are computed after IB markers are generated
@@ -141,6 +143,8 @@ contains
141143 call s_compute_interpolation_coeffs(ghost_points)
142144 $:GPU_UPDATE(device= ' [ghost_points]' )
143145
146+ call nvtxEndRange
147+
144148 end subroutine s_ibm_setup
145149
146150 subroutine s_populate_ib_buffers ()
@@ -989,6 +993,8 @@ contains
989993
990994 integer :: i, ierr
991995
996+ call nvtxStartRange("UPDATE-MIB")
997+
992998 ! Clears the existing immersed boundary indices
993999 ib_markers%sf = 0._wp
9941000
@@ -1002,9 +1008,12 @@ contains
10021008 $:GPU_UPDATE(device=' [patch_ib]' )
10031009
10041010 ! recompute the new ib_patch locations and broadcast them.
1005- $:GPU_UPDATE(device=' [ib_markers%sf]' )
1011+ call nvtxStartRange("COMPUTE-IB-MARKERS")
1012+ $:GPU_UPDATE(device=' [ib_markers%sf]' )
10061013 call s_apply_ib_patches(ib_markers)
1014+ call s_populate_ib_buffers()
10071015 $:GPU_UPDATE(host=' [ib_markers%sf]' )
1016+ call nvtxEndRange
10081017
10091018 ! recalculate the ghost point locations and coefficients
10101019 call s_find_num_ghost_points(num_gps, num_inner_gps)
@@ -1013,15 +1022,19 @@ contains
10131022 call s_find_ghost_points(ghost_points, inner_points)
10141023 $:GPU_UPDATE(device=' [ghost_points, inner_points]' )
10151024
1025+ call nvtxStartRange("APPLY-LEVELSET")
10161026 call s_apply_levelset(ghost_points, num_gps)
10171027 $:GPU_UPDATE(device=' [ghost_points]' )
1028+ call nvtxEndRange
10181029
10191030 call s_compute_image_points(ghost_points)
10201031 $:GPU_UPDATE(device=' [ghost_points]' )
10211032
10221033 call s_compute_interpolation_coeffs(ghost_points)
10231034 $:GPU_UPDATE(device=' [ghost_points]' )
10241035
1036+ call nvtxEndRange
1037+
10251038 end subroutine s_update_mib
10261039
10271040 ! compute the surface integrals of the IB via a volume integraion method described in
0 commit comments