Skip to content

Commit 0771c04

Browse files
author
Diego Vaca
committed
Isolating bug 2
1 parent 8fbecff commit 0771c04

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/simulation/m_bubbles_EL.fpp

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ contains
825825
real(wp) :: charvol, charpres, charvol2, charpres2
826826
integer, dimension(3) :: cellaux
827827
integer :: i, j, k
828-
integer :: mapCells_pinf, smearGrid, smearGridz
828+
integer :: smearGrid, smearGridz
829829
logical :: celloutside
830830

831831
scoord = mtn_s(bub_id, 1:3, 2)
@@ -913,15 +913,8 @@ contains
913913
else if (lag_params%cluster_type >= 2) then
914914
! Bubble dynamic closure from Maeda and Colonius (2018)
915915

916-
! Range of cells included in Omega
917-
if (lag_params%smooth_type == 1) then
918-
mapCells_pinf = mapCells
919-
else
920-
stop "lag_params%cluster_type: 2 requires lag_params%smooth_type: 1."
921-
end if
922-
923916
! Include the cell that contains the bubble (mapCells+1+mapCells)
924-
smearGrid = mapCells_pinf - (-mapCells_pinf) + 1
917+
smearGrid = mapCells - (-mapCells) + 1
925918
smearGridz = smearGrid
926919
if (p == 0) smearGridz = 1
927920

0 commit comments

Comments
 (0)