Skip to content

Commit 537b98d

Browse files
committed
Fix Frontier Bug
1 parent ffd68cc commit 537b98d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/simulation/m_ibm.fpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ contains
5656
@:ALLOCATE(levelset%sf(-gp_layers:m+gp_layers, &
5757
-gp_layers:n+gp_layers, -gp_layers:p+gp_layers, num_ibs))
5858
@:ALLOCATE(levelset_norm%sf(-gp_layers:m+gp_layers, &
59-
-gp_layers:n+gp_layers, -gp_layers:p+gp_layers, num_ibs, 1:3))
59+
-gp_layers:n+gp_layers, -gp_layers:p+gp_layers, num_ibs, 3))
6060
else
6161
@:ALLOCATE(ib_markers%sf(-gp_layers:m+gp_layers, &
6262
-gp_layers:n+gp_layers, 0:0))
6363
@:ALLOCATE(levelset%sf(-gp_layers:m+gp_layers, &
6464
-gp_layers:n+gp_layers, 0:0, num_ibs))
6565
@:ALLOCATE(levelset_norm%sf(-gp_layers:m+gp_layers, &
66-
-gp_layers:n+gp_layers, 0:0, num_ibs, 1:3))
66+
-gp_layers:n+gp_layers, 0:0, num_ibs, 3))
6767
end if
6868

6969
@:ACC_SETUP_SFs(ib_markers)
@@ -208,7 +208,7 @@ contains
208208

209209
! Calculate velocity of ghost cell
210210
if (gp%slip) then
211-
norm = levelset_norm%sf(gp%loc(1), gp%loc(2), gp%loc(3), gp%ib_patch_id, :)
211+
norm = levelset_norm%sf(gp%loc(1), gp%loc(2), gp%loc(3), gp%ib_patch_id, 1:3)
212212
buf = sqrt(sum(norm**2))
213213
norm = norm/buf
214214
vel_norm_IP = sum(vel_IP*norm)*norm

0 commit comments

Comments
 (0)