Skip to content

Commit 3382a01

Browse files
committed
clean up
1 parent f98d4d4 commit 3382a01

File tree

2 files changed

+8
-17
lines changed

2 files changed

+8
-17
lines changed

src/simulation/m_bubbles.fpp

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ contains
5757

5858
subroutine s_initialize_bubbles_module
5959

60-
integer :: i, j, k, l, q
60+
integer :: l
6161

6262
@:ALLOCATE_GLOBAL(rs(1:nb))
6363
@:ALLOCATE_GLOBAL(vs(1:nb))
@@ -119,7 +119,7 @@ contains
119119
integer, intent(in) :: idir
120120
type(scalar_field), dimension(sys_size), intent(in) :: q_prim_vf
121121

122-
integer :: i, j, k, l, q
122+
integer :: i, j, k, l
123123

124124
if (idir == 1) then
125125

@@ -183,18 +183,11 @@ contains
183183
real(kind(0d0)) :: rddot
184184
real(kind(0d0)) :: pb, mv, vflux, pbdot
185185
real(kind(0d0)) :: n_tait, B_tait
186-
187186
real(kind(0d0)), dimension(nb) :: Rtmp, Vtmp
188187
real(kind(0d0)) :: myR, myV, alf, myP, myRho, R2Vav, R3
189188
real(kind(0d0)), dimension(num_fluids) :: myalpha, myalpha_rho
190-
real(kind(0d0)) :: start, finish
191-
192189
real(kind(0d0)) :: nbub !< Bubble number density
193-
194-
real(kind(0d0)), dimension(2) :: Re !< Reynolds number
195-
196190
integer :: i, j, k, l, q, ii !< Loop variables
197-
integer :: ndirs !< Number of coordinate directions
198191

199192
real(kind(0d0)) :: err1, err2, err3, err4, err5 !< Error estimates for adaptive time stepping
200193
real(kind(0d0)) :: t_new !< Updated time step size
@@ -452,7 +445,7 @@ contains
452445
real(kind(0d0)), intent(IN) :: fntait, fBtait, f_bub_adv_src, f_divu
453446
real(kind(0d0)), intent(out) :: h
454447

455-
real(kind(0d0)) :: h0, h1, h_min !< Time step size
448+
real(kind(0d0)) :: h0, h1 !< Time step size
456449
real(kind(0d0)) :: d0, d1, d2 !< norms
457450
real(kind(0d0)), dimension(2) :: myR_tmp, myV_tmp, myA_tmp !< Bubble radius, radial velocity, and radial acceleration
458451

@@ -912,7 +905,6 @@ contains
912905

913906
real(kind(0.d0)) :: T_bar
914907
real(kind(0.d0)) :: grad_T
915-
real(kind(0.d0)) :: tmp1, tmp2
916908
real(kind(0.d0)) :: f_bpres_dot
917909

918910
if (thermal == 3) then

src/simulation/m_qbmm.fpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ contains
776776
real(kind(0.d0)), intent(inout) :: pres, rho, c
777777
real(kind(0.d0)), dimension(nterms, 0:2, 0:2), intent(out) :: coeffs
778778

779-
integer :: i1, i2, q
779+
integer :: i1, i2
780780

781781
coeffs = 0d0
782782

@@ -841,20 +841,19 @@ contains
841841

842842
real(kind(0d0)), dimension(nmom) :: moms, msum
843843
real(kind(0d0)), dimension(nnode, nb) :: wght, abscX, abscY, wght_pb, wght_mv, wght_ht, ht
844-
real(kind(0d0)), dimension(nterms, 0:2, 0:2) :: mom3d_terms, coeff
845-
real(kind(0d0)) :: pres, rho, nbub, c, alf, R3, momsum, drdt, drdt2, chi_vw, x_vw, rho_mw, k_mw, T_bar, grad_T
846-
real(kind(0d0)) :: start, finish
844+
real(kind(0d0)), dimension(nterms, 0:2, 0:2) :: coeff
845+
real(kind(0d0)) :: pres, rho, nbub, c, alf, momsum, drdt, drdt2, chi_vw, x_vw, rho_mw, k_mw, T_bar, grad_T
847846
real(kind(0d0)) :: n_tait, B_tait
848847

849-
integer :: j, k, l, q, r, s !< Loop variables
850848
integer :: id1, id2, id3
851849
integer :: i1, i2
850+
integer :: j, k, q, r
852851

853852
is1_qbmm = ix; is2_qbmm = iy; is3_qbmm = iz
854853

855854
!$acc update device(is1_qbmm, is2_qbmm, is3_qbmm)
856855

857-
!$acc parallel loop collapse(3) gang vector default(present) private(moms, msum, wght, abscX, abscY, wght_pb, wght_mv, wght_ht, coeff, ht, r, q, n_tait, B_tait, pres, rho, nbub, c, alf, R3, momsum, drdt, drdt2, chi_vw, x_vw, rho_mw, k_mw, T_bar, grad_T)
856+
!$acc parallel loop collapse(3) gang vector default(present) private(moms, msum, wght, abscX, abscY, wght_pb, wght_mv, wght_ht, coeff, ht, r, q, n_tait, B_tait, pres, rho, nbub, c, alf, momsum, drdt, drdt2, chi_vw, x_vw, rho_mw, k_mw, T_bar, grad_T)
858857
do id3 = is3_qbmm%beg, is3_qbmm%end
859858
do id2 = is2_qbmm%beg, is2_qbmm%end
860859
do id1 = is1_qbmm%beg, is1_qbmm%end

0 commit comments

Comments
 (0)