Skip to content

Commit 665321b

Browse files
author
Diego Vaca
committed
printing statements in rkck
1 parent e2c7f7c commit 665321b

File tree

2 files changed

+33
-6
lines changed

2 files changed

+33
-6
lines changed

src/simulation/m_bubbles_EL.fpp

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -533,12 +533,14 @@ contains
533533

534534
!< BUBBLE DYNAMICS
535535

536+
print *, 'bub_dphidt kernel loop'
536537
! Subgrid p_inf model based on Maeda and Colonius (2018).
537538
if (lag_params%pressure_corrector) then
538539
! Calculate velocity potentials (valid for one bubble per cell)
539540
!$acc parallel loop gang vector default(present) private(k, cell)
540541
do k = 1, nBubs
541542
pinf = f_pinf(k, q_prim_vf, 2, cell, preterm1, term2, Romega)
543+
print *, 'f_pinf'
542544
fR0 = bub_R0(k)
543545
fR = intfc_rad(k, 2)
544546
fV = intfc_vel(k, 2)
@@ -555,6 +557,7 @@ contains
555557
end do
556558
end if
557559

560+
print *, 'bub dynamics kernel loop'
558561
! Radial motion model
559562
if (bubble_model == 2) then
560563
!$acc parallel loop gang vector default(present) private(k, myalpha_rho, myalpha, Re, cell) copyin(stage)
@@ -580,14 +583,15 @@ contains
580583
! Vapor and heat fluxes
581584
vaporflux = f_vflux(fR, fV, fmass_v, k, fmass_n, fbeta_c, conc_v)
582585
fpbdt = f_bpres_dot(vaporflux, fR, fV, fpb, fmass_v, k, fbeta_t, R_m, gamma_m, conc_v)
586+
print *, 'f_vflux and f_bpres_dot'
583587
gas_dmvdt(k, stage) = 4._wp*pi*fR**2._wp*vaporflux
584-
588+
print *, 'updated gas_dmvdt', stage
585589
! Pressure at the bubble wall
586590
pliqint = f_cpbw_KM(fR0, fR, fV, fpb)
587-
591+
print *, 'f_cpbw_KM'
588592
! Obtaining driving pressure
589593
pinf = f_pinf(k, q_prim_vf, 1, cell, preterm1, term2, Romega)
590-
594+
print *, 'f_pinf'
591595
! Obtain liquid density and computing speed of sound from pinf
592596
!$acc loop seq
593597
do i = 1, contxe
@@ -598,14 +602,15 @@ contains
598602
call s_convert_species_to_mixture_variables_acc(rhol, gamma, pi_inf, qv, myalpha, &
599603
myalpha_rho, Re, cell(1), cell(2), cell(3))
600604
call s_compute_cson_from_pinf(k, q_prim_vf, pinf, cell, rhol, gamma, pi_inf, cson)
601-
605+
print *, 'cson and rhol'
602606
! Velocity correction due to massflux
603607
velint = fV - gas_dmvdt(k, stage)/(4._wp*pi*fR**2._wp*rhol)
604-
608+
print *, 'velint'
605609
! Interphase acceleration and update vars
606610
intfc_dveldt(k, stage) = f_rddot_KM(fpbdt, pinf, pliqint, rhol, fR, velint, fR0, cson)
607611
gas_dpdt(k, stage) = fpbdt
608612
intfc_draddt(k, stage) = fV
613+
print *, 'update intfc_dveldt, gas_dpdt, intfc_draddt'
609614

610615
end do
611616
else
@@ -618,6 +623,7 @@ contains
618623
end do
619624
end if
620625

626+
print *, 'bub position kernel loop'
621627
! Bubbles remain in a fixed position
622628
!$acc parallel loop collapse(2) gang vector default(present) private(k) copyin(stage)
623629
do k = 1, nBubs
@@ -630,7 +636,9 @@ contains
630636
call nvtxEndRange
631637

632638
!< EULER-LAGRANGE COUPLING
639+
print *, 's_smear_voidfraction'
633640
call s_smear_voidfraction()
641+
print *, 's_add_rhs_sources'
634642
if (lag_params%solver_approach == 2) call s_add_rhs_sources(q_cons_vf, q_prim_vf, rhs_vf)
635643

636644
end subroutine s_compute_EL_coupled_solver
@@ -1000,7 +1008,7 @@ contains
10001008
preterm1 = 3._wp/2._wp*Rbeq*(dc**2._wp - Rbeq**2._wp)/(aux*denom)
10011009

10021010
!Control volume radius
1003-
if (ptype == 2) Romega = dc
1011+
Romega = dc
10041012

10051013
! Getting p_inf
10061014
if (ptype == 1) then

src/simulation/m_time_steppers.fpp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,11 +1075,16 @@ contains
10751075
#ifdef DEBUG
10761076
if (proc_rank == 0) print *, 'RKCK 1st time-stage at', rkck_time_tmp
10771077
#endif
1078+
print *, 's_compute_rhs', RKstep
10781079
call s_compute_rhs(q_cons_ts(1)%vf, q_T_sf, q_prim_vf, rhs_ts_rkck(1)%vf, pb_ts(1)%sf, rhs_pb, mv_ts(1)%sf, rhs_mv, t_step, time_avg)
1080+
print *, 's_compute_EL_coupled_solver', RKstep
10791081
call s_compute_EL_coupled_solver(q_cons_ts(1)%vf, q_prim_vf, rhs_ts_rkck(1)%vf, RKstep)
1082+
print *, 's_update_tmp_rkck', RKstep
10801083
call s_update_tmp_rkck(RKstep, q_cons_ts, rhs_ts_rkck, lag_largestep)
1084+
print *, 's_compute_rkck_dt', RKstep, lag_largestep
10811085
if (lag_largestep > 0._wp) call s_compute_rkck_dt(lag_largestep, restart_rkck_step)
10821086
if (restart_rkck_step) cycle
1087+
print *, 'done with stage 1'
10831088

10841089
! SECOND TIME-STAGE
10851090
RKstep = 2
@@ -1089,11 +1094,16 @@ contains
10891094
#ifdef DEBUG
10901095
if (proc_rank == 0) print *, 'RKCK 2nd time-stage at', rkck_time_tmp
10911096
#endif
1097+
print *, 's_compute_rhs', RKstep
10921098
call s_compute_rhs(q_cons_ts(2)%vf, q_T_sf, q_prim_vf, rhs_ts_rkck(2)%vf, pb_ts(1)%sf, rhs_pb, mv_ts(1)%sf, rhs_mv, t_step, time_avg)
1099+
print *, 's_compute_EL_coupled_solver', RKstep
10931100
call s_compute_EL_coupled_solver(q_cons_ts(2)%vf, q_prim_vf, rhs_ts_rkck(2)%vf, RKstep)
1101+
print *, 's_update_tmp_rkck', RKstep
10941102
call s_update_tmp_rkck(RKstep, q_cons_ts, rhs_ts_rkck, lag_largestep)
1103+
print *, 's_compute_rkck_dt', RKstep, lag_largestep
10951104
if (lag_largestep > 0._wp) call s_compute_rkck_dt(lag_largestep, restart_rkck_step)
10961105
if (restart_rkck_step) cycle
1106+
print *, 'done with stage 2'
10971107

10981108
! THIRD TIME-STAGE
10991109
RKstep = 3
@@ -1108,6 +1118,7 @@ contains
11081118
call s_update_tmp_rkck(RKstep, q_cons_ts, rhs_ts_rkck, lag_largestep)
11091119
if (lag_largestep > 0._wp) call s_compute_rkck_dt(lag_largestep, restart_rkck_step)
11101120
if (restart_rkck_step) cycle
1121+
print *, 'done with stage 3'
11111122

11121123
! FOURTH TIME-STAGE
11131124
RKstep = 4
@@ -1122,6 +1133,7 @@ contains
11221133
call s_update_tmp_rkck(RKstep, q_cons_ts, rhs_ts_rkck, lag_largestep)
11231134
if (lag_largestep > 0._wp) call s_compute_rkck_dt(lag_largestep, restart_rkck_step)
11241135
if (restart_rkck_step) cycle
1136+
print *, 'done with stage 4'
11251137

11261138
! FIFTH TIME-STAGE
11271139
RKstep = 5
@@ -1136,6 +1148,7 @@ contains
11361148
call s_update_tmp_rkck(5, q_cons_ts, rhs_ts_rkck, lag_largestep)
11371149
if (lag_largestep > 0._wp) call s_compute_rkck_dt(lag_largestep, restart_rkck_step)
11381150
if (restart_rkck_step) cycle
1151+
print *, 'done with stage 5'
11391152

11401153
! SIXTH TIME-STAGE
11411154
RKstep = 6
@@ -1150,6 +1163,7 @@ contains
11501163
call s_update_tmp_rkck(6, q_cons_ts, rhs_ts_rkck, lag_largestep)
11511164
if (lag_largestep > 0._wp) call s_compute_rkck_dt(lag_largestep, restart_rkck_step)
11521165
if (restart_rkck_step) cycle
1166+
print *, 'done with stage 6'
11531167

11541168
dt_did = dt
11551169

@@ -1158,16 +1172,20 @@ contains
11581172
#ifdef DEBUG
11591173
if (proc_rank == 0) print *, 'Computing truncation error (4th/5th RKCK)'
11601174
#endif
1175+
print *, 's_calculate_rkck_truncation_error'
11611176
call s_calculate_rkck_truncation_error(rkck_errmax)
1177+
print *, 's_compute_rkck_dt'
11621178
call s_compute_rkck_dt(lag_largestep, restart_rkck_step, rkck_errmax)
11631179
if (restart_rkck_step) cycle
1180+
print *, 'done with truncation error', dt
11641181
end if
11651182

11661183
end do
11671184

11681185
!> Update values
11691186
mytime = mytime + dt_did
11701187
call s_update_rkck(q_cons_ts)
1188+
print *, 'done with s_update_rkck'
11711189

11721190
call s_write_void_evol(mytime)
11731191
if (lag_params%write_bubbles_stats) call s_calculate_lag_bubble_stats()
@@ -1181,6 +1199,7 @@ contains
11811199
call s_write_run_time_information(q_prim_vf, t_step)
11821200
end if
11831201

1202+
print *, 'done with s_4th_5th_order_rkck'
11841203
end subroutine s_4th_5th_order_rkck
11851204

11861205
!> Module deallocation and/or disassociation procedures

0 commit comments

Comments
 (0)