Skip to content

Commit f5abb8d

Browse files
committed
minor correctness fix for edge cases
1 parent 983ae34 commit f5abb8d

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/simulation/m_bubbles_EL.fpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1510,6 +1510,8 @@ contains
15101510
do while (pos(3) >= z_cb(cell(3)))
15111511
cell(3) = cell(3) + 1
15121512
end do
1513+
else
1514+
cell(3) = 0
15131515
end if
15141516

15151517
! The numbering of the cell of which left boundary is the domain boundary is 0. if comp.coord of the pos is s, the real
@@ -1521,10 +1523,6 @@ contains
15211523
scoord(2) = cell(2) + (pos(2) - y_cb(cell(2) - 1))/dy(cell(2))
15221524
scoord(3) = 0._wp
15231525
if (p > 0) scoord(3) = cell(3) + (pos(3) - z_cb(cell(3) - 1))/dz(cell(3))
1524-
cell(:) = int(scoord(:))
1525-
do i = 1, num_dims
1526-
if (scoord(i) < 0._wp) cell(i) = cell(i) - 1
1527-
end do
15281526

15291527
end subroutine s_locate_cell
15301528

0 commit comments

Comments
 (0)