@@ -18,8 +18,6 @@ module m_ibm
1818
1919 use m_helper
2020
21- use m_helper_basic !< Functions to compare floating point numbers
22-
2321 use m_constants
2422
2523 implicit none
@@ -147,7 +145,7 @@ contains
147145 real (wp) :: qv_K
148146 real (wp), dimension (num_fluids) :: Gs
149147
150- real (wp) :: pres_IP
148+ real (wp) :: pres_IP, coeff
151149 real (wp), dimension (3 ) :: vel_IP, vel_norm_IP
152150 real (wp) :: c_IP
153151 real (wp), dimension (num_fluids) :: alpha_rho_IP, alpha_IP
@@ -166,7 +164,7 @@ contains
166164 type(ghost_point) :: gp
167165 type(ghost_point) :: innerp
168166
169- !$acc parallel loop gang vector private(physical_loc, dyn_pres, alpha_rho_IP, alpha_IP, pres_IP, vel_IP, vel_g, vel_norm_IP, r_IP, v_IP, pb_IP, mv_IP, nmom_IP, presb_IP, massv_IP, rho, gamma, pi_inf, Re_K, G_K, Gs, gp, innerp, norm, buf, j, k, l, q)
167+ !$acc parallel loop gang vector private(physical_loc, dyn_pres, alpha_rho_IP, alpha_IP, pres_IP, vel_IP, vel_g, vel_norm_IP, r_IP, v_IP, pb_IP, mv_IP, nmom_IP, presb_IP, massv_IP, rho, gamma, pi_inf, Re_K, G_K, Gs, gp, innerp, norm, buf, j, k, l, q, coeff )
170168 do i = 1 , num_gps
171169
172170 gp = ghost_points(i)
@@ -226,7 +224,7 @@ contains
226224 alpha_rho_IP, Re_K)
227225 end if
228226 end if
229-
227+
230228 ! Calculate velocity of ghost cell
231229 if (gp%slip) then
232230 norm(1 :3 ) = levelset_norm%sf(gp%loc(1 ), gp%loc(2 ), gp%loc(3 ), gp%ib_patch_id, 1 :3 )
@@ -313,40 +311,14 @@ contains
313311 !$acc parallel loop gang vector private(physical_loc, dyn_pres, alpha_rho_IP, alpha_IP, vel_g, rho, gamma, pi_inf, Re_K, innerp, j, k, l, q)
314312 do i = 1 , num_inner_gps
315313
316- vel_g = 0._wp
317314 innerp = inner_points(i)
318315 j = innerp%loc(1 )
319316 k = innerp%loc(2 )
320317 l = innerp%loc(3 )
321- patch_id = inner_points(i)%ib_patch_id
322-
323- ! Calculate physical location of GP
324- if (p > 0 ) then
325- physical_loc = [x_cc(j), y_cc(k), z_cc(l)]
326- else
327- physical_loc = [x_cc(j), y_cc(k), 0._wp ]
328- end if
329-
330- !$acc loop seq
331- do q = 1 , num_fluids
332- q_prim_vf(q)%sf(j, k, l) = alpha_rho_IP(q)
333- q_prim_vf(advxb + q - 1 )%sf(j, k, l) = alpha_IP(q)
334- end do
335-
336- if (surface_tension) then
337- q_prim_vf(c_idx)%sf(j, k, l) = c_IP
338- end if
339-
340- call s_convert_species_to_mixture_variables_acc(rho, gamma, pi_inf, qv_K, alpha_IP, &
341- alpha_rho_IP, Re_K)
342-
343- dyn_pres = 0._wp
344318
345319 !$acc loop seq
346320 do q = momxb, momxe
347- q_cons_vf(q)%sf(j, k, l) = rho* vel_g(q - momxb + 1 )
348- dyn_pres = dyn_pres + q_cons_vf(q)%sf(j, k, l)* &
349- vel_g(q - momxb + 1 )/ 2._wp
321+ q_cons_vf(q)%sf(j, k, l) = 0._wp
350322 end do
351323 end do
352324
@@ -410,7 +382,7 @@ contains
410382 bound = p
411383 end if
412384
413- if (f_approx_equal( norm(dim), 0._wp ) ) then
385+ if (norm(dim) == 0 ) then
414386 ghost_points(q)%ip_grid(dim) = ghost_points(q)%loc(dim)
415387 else
416388 if (norm(dim) > 0 ) then
0 commit comments