diff --git a/src/simulation/m_bubbles_EL.fpp b/src/simulation/m_bubbles_EL.fpp index b48f941a39..03b00d27c9 100644 --- a/src/simulation/m_bubbles_EL.fpp +++ b/src/simulation/m_bubbles_EL.fpp @@ -251,7 +251,7 @@ contains end do close (94) else - stop "if you include lagrange bubbles, you have to initialize them in input/lag_bubbles.dat" + stop "Lagrange bubbles: you have to initialize them in input/lag_bubbles.dat" end if else if (proc_rank == 0) print *, 'Restarting lagrange bubbles at save_count: ', save_count @@ -366,7 +366,7 @@ contains gas_mv(bub_id, 1) = pv*volparticle*(1._wp/(R_v*Tw))*(massflag) ! vapermass gas_mg(bub_id) = (gas_p(bub_id, 1) - pv*(massflag))*volparticle*(1._wp/(R_n*Tw)) ! gasmass if (gas_mg(bub_id) <= 0._wp) then - stop 'the initial mass of gas inside the bubble is negative. Check your initial conditions' + stop "The initial mass of gas inside the bubble is negative. Check your initial conditions." end if totalmass = gas_mg(bub_id) + gas_mv(bub_id, 1) ! totalmass @@ -374,9 +374,7 @@ contains concvap = gas_mv(bub_id, 1)/(gas_mv(bub_id, 1) + gas_mg(bub_id)) omegaN = (3._wp*(gas_p(bub_id, 1) - pv*(massflag)) + 4._wp*(1._wp/Web)/bub_R0(bub_id))/rhol if (pv*(massflag) > gas_p(bub_id, 1)) then - print *, 'Not allowed: bubble initially located in a region with pressure below the vapor pressure' - print *, 'location:', mtn_pos(bub_id, 1:3, 1) - stop + stop "Lagrange bubble initially located in a region with pressure below the vapor pressure." end if omegaN = sqrt(omegaN/bub_R0(bub_id)**2._wp) @@ -904,12 +902,8 @@ contains else if (lag_params%cluster_type >= 2) then ! Bubble dynamic closure from Maeda and Colonius (2018) - - ! Range of cells included in Omega if (lag_params%smooth_type == 1) then mapCells_pinf = mapCells - else - stop "lag_params%cluster_type: 2 requires lag_params%smooth_type: 1." end if ! Include the cell that contains the bubble (mapCells+1+mapCells) @@ -987,9 +981,6 @@ contains f_pinfl = charpres2/charvol2 vol = charvol dc = (3._wp*abs(vol)/(4._wp*pi))**(1._wp/3._wp) - else - - stop "Check cluterflag. Exiting." end if @@ -1038,7 +1029,6 @@ contains mtn_vel(k, 1:3, 1) = mtn_vel(k, 1:3, 1) + dt*mtn_dveldt(k, 1:3, 1) gas_p(k, 1) = gas_p(k, 1) + dt*gas_dpdt(k, 1) gas_mv(k, 1) = gas_mv(k, 1) + dt*gas_dmvdt(k, 1) - if (intfc_rad(k, 1) <= 0._wp) stop "Negative bubble radius encountered, please reduce dt" end do call s_transfer_data_to_tmp() @@ -1061,7 +1051,6 @@ contains mtn_vel(k, 1:3, 2) = mtn_vel(k, 1:3, 1) + dt*mtn_dveldt(k, 1:3, 1) gas_p(k, 2) = gas_p(k, 1) + dt*gas_dpdt(k, 1) gas_mv(k, 2) = gas_mv(k, 1) + dt*gas_dmvdt(k, 1) - if (intfc_rad(k, 2) <= 0._wp) stop "Negative bubble radius encountered, please reduce dt" end do elseif (stage == 2) then @@ -1074,7 +1063,6 @@ contains mtn_vel(k, 1:3, 1) = mtn_vel(k, 1:3, 1) + dt*(mtn_dveldt(k, 1:3, 1) + mtn_dveldt(k, 1:3, 2))/2._wp gas_p(k, 1) = gas_p(k, 1) + dt*(gas_dpdt(k, 1) + gas_dpdt(k, 2))/2._wp gas_mv(k, 1) = gas_mv(k, 1) + dt*(gas_dmvdt(k, 1) + gas_dmvdt(k, 2))/2._wp - if (intfc_rad(k, 1) <= 0._wp) stop "Negative bubble radius encountered, please reduce dt" end do call s_transfer_data_to_tmp() @@ -1099,7 +1087,6 @@ contains mtn_vel(k, 1:3, 2) = mtn_vel(k, 1:3, 1) + dt*mtn_dveldt(k, 1:3, 1) gas_p(k, 2) = gas_p(k, 1) + dt*gas_dpdt(k, 1) gas_mv(k, 2) = gas_mv(k, 1) + dt*gas_dmvdt(k, 1) - if (intfc_rad(k, 2) <= 0._wp) stop "Negative bubble radius encountered, please reduce dt" end do elseif (stage == 2) then @@ -1112,7 +1099,6 @@ contains mtn_vel(k, 1:3, 2) = mtn_vel(k, 1:3, 1) + dt*(mtn_dveldt(k, 1:3, 1) + mtn_dveldt(k, 1:3, 2))/4._wp gas_p(k, 2) = gas_p(k, 1) + dt*(gas_dpdt(k, 1) + gas_dpdt(k, 2))/4._wp gas_mv(k, 2) = gas_mv(k, 1) + dt*(gas_dmvdt(k, 1) + gas_dmvdt(k, 2))/4._wp - if (intfc_rad(k, 2) <= 0._wp) stop "Negative bubble radius encountered, please reduce dt" end do elseif (stage == 3) then !$acc parallel loop gang vector default(present) private(k) @@ -1124,7 +1110,6 @@ contains mtn_vel(k, 1:3, 1) = mtn_vel(k, 1:3, 1) + (2._wp/3._wp)*dt*(mtn_dveldt(k, 1:3, 1)/4._wp + mtn_dveldt(k, 1:3, 2)/4._wp + mtn_dveldt(k, 1:3, 3)) gas_p(k, 1) = gas_p(k, 1) + (2._wp/3._wp)*dt*(gas_dpdt(k, 1)/4._wp + gas_dpdt(k, 2)/4._wp + gas_dpdt(k, 3)) gas_mv(k, 1) = gas_mv(k, 1) + (2._wp/3._wp)*dt*(gas_dmvdt(k, 1)/4._wp + gas_dmvdt(k, 2)/4._wp + gas_dmvdt(k, 3)) - if (intfc_rad(k, 1) <= 0._wp) stop "Negative bubble radius encountered, please reduce dt" end do call s_transfer_data_to_tmp() diff --git a/src/simulation/m_bubbles_EL_kernels.fpp b/src/simulation/m_bubbles_EL_kernels.fpp index 43246aad55..7bab026e67 100644 --- a/src/simulation/m_bubbles_EL_kernels.fpp +++ b/src/simulation/m_bubbles_EL_kernels.fpp @@ -319,15 +319,11 @@ contains if (bc_x%beg == -2 .and. (cell(1) <= mapCells - 1)) then if (cell(1) >= 0) then cellaux(1) = abs(cellaux(1)) - 1 - else - stop "Lagrangian bubbles must not be located in the ghost cells of a symmetric boundary (bc_x%beg)." end if end if if (bc_x%end == -2 .and. (cell(1) >= m + 1 - mapCells)) then if (cell(1) <= m) then cellaux(1) = cellaux(1) - (2*(cellaux(1) - m) - 1) - else - stop "Lagrangian bubbles must not be located in the ghost cells of a symmetric boundary (bc_x%end)." end if end if @@ -335,15 +331,11 @@ contains if (bc_y%beg == -2 .and. (cell(2) <= mapCells - 1)) then if (cell(2) >= 0) then cellaux(2) = abs(cellaux(2)) - 1 - else - stop "Lagrangian bubbles must not be located in the ghost cells of a symmetric boundary (bc_y%beg)." end if end if if (bc_y%end == -2 .and. (cell(2) >= n + 1 - mapCells)) then if (cell(2) <= n) then cellaux(2) = cellaux(2) - (2*(cellaux(2) - n) - 1) - else - stop "Lagrangian bubbles must not be located in the ghost cells of a symmetric boundary (bc_y%end)." end if end if @@ -352,15 +344,11 @@ contains if (bc_z%beg == -2 .and. (cell(3) <= mapCells - 1)) then if (cell(3) >= 0) then cellaux(3) = abs(cellaux(3)) - 1 - else - stop "Lagrangian bubbles must not be located in the ghost cells of a symmetric boundary (bc_z%beg)." end if end if if (bc_z%end == -2 .and. (cell(3) >= p + 1 - mapCells)) then if (cell(3) <= p) then cellaux(3) = cellaux(3) - (2*(cellaux(3) - p) - 1) - else - stop "Lagrangian bubbles must not be located in the ghost cells of a symmetric boundary (bc_z%end)." end if end if end if