Skip to content

Commit ae30de5

Browse files
author
Anand
committed
Fix minimum buff_size in IBM, and add a warning
1 parent daff4de commit ae30de5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/common/m_helper_basic.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ contains
144144
end if
145145

146146
if (ib) then
147-
buff_size = max(buff_size, 6)
147+
buff_size = max(buff_size, 10)
148148
end if
149149

150150
! Configuring Coordinate Direction Indexes

src/simulation/m_ibm.fpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,8 @@ contains
405405
.or. temp_loc > s_cc(index + 1)))
406406
index = index + dir
407407
if (index < -buff_size .or. index > bound) then
408-
exit
408+
print *, "Increase buff_size further in m_helper_basic (currently set to a minimum of 10)"
409+
error stop "Increase buff_size"
409410
end if
410411
end do
411412
ghost_points_in(q)%ip_grid(dim) = index

0 commit comments

Comments
 (0)