@@ -143,7 +143,7 @@ contains
143143 type(scalar_field), dimension (sys_size), intent (inout ) :: q_prim_vf !< Primitive Variables
144144 real (stp), dimension (idwbuff(1 )%beg:,idwbuff(2 )%beg:,idwbuff(3 )%beg:,1 :,1 :), optional, intent (inout ) :: pb_in, mv_in
145145 integer :: i, j, k, l, q, r !< Iterator variables
146- integer :: patch_id !< Patch ID of ghost point
146+ integer :: patch_id, patch_id_temp !< Patch ID of ghost point
147147 real (wp) :: rho, gamma, pi_inf, dyn_pres !< Mixture variables
148148 real (wp), dimension (2 ) :: Re_K
149149 real (wp) :: G_K
@@ -178,15 +178,14 @@ contains
178178 type(ghost_point) :: innerp
179179
180180 ! set the Moving IBM interior conservative variables
181-
182181 $:GPU_PARALLEL_LOOP(private= ' [i, j, k, patch_id, rho]' , collapse= 3 )
183182 do l = 0 , p
184183 do k = 0 , n
185184 do j = 0 , m
186185 patch_id = ib_markers%sf(j, k, l)
187186 if (patch_id /= 0 ) then
188- call s_decode_patch_periodicity(patch_id, patch_id )
189- call s_get_neighborhood_idx(patch_id , patch_id)
187+ call s_decode_patch_periodicity(patch_id, patch_id_temp )
188+ call s_get_neighborhood_idx(patch_id_temp , patch_id)
190189 if (patch_id > 0 ) then
191190 q_prim_vf(eqn_idx%E)%sf(j, k, l) = 1._wp
192191 rho = 0._wp
@@ -903,7 +902,7 @@ contains
903902
904903 type(scalar_field), dimension (1 :sys_size), intent (in ) :: q_prim_vf
905904 type(physical_parameters), dimension (1 :num_fluids), intent (in ) :: fluid_pp
906- integer :: i, j, k, l, encoded_ib_idx, ib_idx, fluid_idx
905+ integer :: i, j, k, l, encoded_ib_idx, ib_idx, ib_idx_temp, fluid_idx
907906 real (wp), dimension (num_ibs, 3 ) :: forces, torques
908907 ! viscous stress tensor with temp vectors to hold divergence calculations
909908 real (wp), dimension (1 :3 ,1 :3 ) :: viscous_stress_div, viscous_stress_div_1, viscous_stress_div_2
@@ -931,17 +930,17 @@ contains
931930 end do
932931 end if
933932
934- $:GPU_PARALLEL_LOOP(private= ' [ib_idx, encoded_ib_idx, fluid_idx, radial_vector, local_force_contribution, cell_volume , &
935- & local_torque_contribution, dynamic_viscosity, viscous_stress_div, viscous_stress_div_1 , &
936- & viscous_stress_div_2, dx, dy, dz]' , copy= ' [forces, torques]' , copyin = ' [patch_ib , &
937- & dynamic_viscosities]' , collapse= 3 )
933+ $:GPU_PARALLEL_LOOP(private= ' [ib_idx, ib_idx_temp, encoded_ib_idx, fluid_idx, radial_vector, local_force_contribution, &
934+ & cell_volume, local_torque_contribution, dynamic_viscosity, viscous_stress_div, &
935+ & viscous_stress_div_1, viscous_stress_div_2, dx, dy, dz]' , copy= ' [forces, torques]' , &
936+ & copyin = ' [patch_ib, dynamic_viscosities]' , collapse= 3 )
938937 do i = 0 , m
939938 do j = 0 , n
940939 do k = 0 , p
941940 encoded_ib_idx = ib_markers%sf(i, j, k)
942941 if (encoded_ib_idx /= 0 ) then
943- call s_decode_patch_periodicity(encoded_ib_idx, ib_idx )
944- call s_get_neighborhood_idx(ib_idx , ib_idx) ! global patch ID - > local index
942+ call s_decode_patch_periodicity(encoded_ib_idx, ib_idx_temp )
943+ call s_get_neighborhood_idx(ib_idx_temp , ib_idx) ! global patch ID - > local index
945944 if (ib_idx > 0 ) then
946945 ! get the vector pointing to the grid cell from the IB centroid
947946 if (num_dims == 3 ) then
0 commit comments