Skip to content

Commit 6ea719c

Browse files
author
Anand
committed
Merge
1 parent 38bb6d0 commit 6ea719c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/simulation/m_ibm.fpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ module m_ibm
1818

1919
use m_helper
2020

21+
use m_helper_basic !< Functions to compare floating point numbers
22+
2123
use m_constants
2224

2325
implicit none
@@ -164,7 +166,7 @@ contains
164166
type(ghost_point) :: gp
165167
type(ghost_point) :: innerp
166168

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)
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)
168170
do i = 1, num_gps
169171

170172
gp = ghost_points(i)
@@ -224,7 +226,7 @@ contains
224226
alpha_rho_IP, Re_K)
225227
end if
226228
end if
227-
229+
228230
! Calculate velocity of ghost cell
229231
if (gp%slip) then
230232
norm(1:3) = levelset_norm%sf(gp%loc(1), gp%loc(2), gp%loc(3), gp%ib_patch_id, 1:3)
@@ -382,7 +384,7 @@ contains
382384
bound = p
383385
end if
384386

385-
if (norm(dim) == 0) then
387+
if (f_approx_equal(norm(dim), 0._wp)) then
386388
ghost_points(q)%ip_grid(dim) = ghost_points(q)%loc(dim)
387389
else
388390
if (norm(dim) > 0) then

0 commit comments

Comments
 (0)