Skip to content

Commit 689b2e4

Browse files
committed
clean up
1 parent 57c7163 commit 689b2e4

File tree

10 files changed

+118
-152
lines changed

10 files changed

+118
-152
lines changed

src/pre_process/m_checker.fpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ contains
116116

117117
! Common checks for all directions (stretch_x, stretch_y, and stretch_z)
118118
#:for X in ['x', 'y', 'z']
119+
@:PROHIBIT(stretch_${X}$ .and. weno_order == 7, "weno_order = 7 does not support stretched grids")
119120
@:PROHIBIT(stretch_${X}$ .and. old_grid, "old_grid and stretch_${X}$ are incompatible")
120121
@:PROHIBIT(stretch_${X}$ .and. f_is_default(a_${X}$), "a_${X}$ must be set with stretch_${X}$ enabled")
121122
@:PROHIBIT(stretch_${X}$ .and. f_is_default(${X}$_a), "${X}$_a must be set with stretch_${X}$ enabled")

src/simulation/m_cbc.fpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,6 @@ contains
713713
! ==================================================================
714714

715715
! PI4 of flux_rs_vf and flux_src_rs_vf at j = 1/2, 3/2 =============
716-
! elseif (weno_order == 5) then
717716
else
718717
call s_convert_primitive_to_flux_variables(q_prim_rs${XYZ}$_vf, &
719718
F_rs${XYZ}$_vf, &

src/simulation/m_checker.fpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ contains
6767
"weno_order != 1, but weno_eps is not set. A typical value of weno_eps is 1e-6")
6868
@:PROHIBIT(weno_eps <= 0d0, "weno_eps must be positive. A typical value of weno_eps is 1e-6")
6969
@:PROHIBIT(wenoz .and. weno_order == 7 .and. f_is_default(wenoz_q), &
70-
"wenoz is used at 7th order, but wenoz_q is not set. It should be either 2 or 4")
70+
"wenoz is used at 7th order, but wenoz_q is not set. It should be either 2, 3, or 4")
71+
@:PROHIBIT(wenoz .and. weno_order == 7 .and. .not. (f_approx_equal(wenoz_q, 2d0) .or. f_approx_equal(wenoz_q, 3d0) .or. f_approx_equal(wenoz_q, 4d0)), &
72+
"wenoz_q must be either 2, 3, or 4")
7173
@:PROHIBIT(teno .and. f_is_default(teno_CT), "teno is used, but teno_CT is not set. A typical value of teno_CT is 1e-6")
7274
@:PROHIBIT(teno .and. teno_CT <= 0d0, "teno_CT must be positive. A typical value of teno_CT is 1e-6")
7375
@:PROHIBIT(count([mapped_weno, wenoz, teno]) >= 2, "Only one of mapped_weno, wenoz, or teno can be set to true")

src/simulation/m_global_parameters.fpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,6 @@ module m_global_parameters
138138
integer :: weno_polyn !< Degree of the WENO polynomials (polyn)
139139
integer :: weno_order !< Order of the WENO reconstruction
140140
integer :: weno_num_stencils !< Number of stencils for WENO reconstruction (only different weno_polyn for TENO(>5))
141-
integer :: weno_dvd_ubound !< Upper limit for dvd used in s_compute_weno_coefficients
142-
143141
integer :: num_fluids !< number of fluids in the simulation
144142
logical :: wenojs !< WENO-JS (default)
145143
logical :: mapped_weno !< WENO-M (WENO with mapping of nonlinear weights)
@@ -715,10 +713,8 @@ contains
715713
weno_polyn = (weno_order - 1)/2
716714
if (teno) then
717715
weno_num_stencils = weno_order - 3
718-
weno_dvd_ubound = weno_order
719716
else
720717
weno_num_stencils = weno_polyn
721-
weno_dvd_ubound = weno_polyn - 1
722718
end if
723719
!$acc update device(weno_polyn)
724720
!$acc update device(nb)

src/simulation/m_rhs.fpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,6 @@ contains
942942
flux_src_n(id)%vf, &
943943
flux_gsrc_n(id)%vf, &
944944
id, ix, iy, iz)
945-
! print *, 'DEBUG riemann_solver completed'
946945
call nvtxEndRange
947946

948947
! Additional physics and source terms ==============================
@@ -2155,12 +2154,8 @@ contains
21552154
integer :: weno_dir !< Coordinate direction of the WENO reconstruction
21562155

21572156
integer :: i, j, k, l
2158-
2159-
integer :: ii
21602157
! Reconstruction in s1-direction ===================================
21612158

2162-
! print *, 'DEBUG m_rhs s_reconstruct_cell_boundary_values started'
2163-
21642159
if (norm_dir == 1) then
21652160
is1 = ix; is2 = iy; is3 = iz
21662161
weno_dir = 1; is1%beg = is1%beg + weno_polyn
@@ -2199,8 +2194,6 @@ contains
21992194
is1, is2, is3)
22002195
end if
22012196

2202-
! print *, 'DEBUG m_rhs s_reconstruct_cell_boundary_values ended'
2203-
22042197
! ==================================================================
22052198
end subroutine s_reconstruct_cell_boundary_values
22062199

src/simulation/m_riemann_solvers.fpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,6 @@ module m_riemann_solvers
266266

267267
contains
268268

269-
! DEBUG: 1D_test_WENO7 is using this
270269
subroutine s_hll_riemann_solver(qL_prim_rsx_vf, qL_prim_rsy_vf, qL_prim_rsz_vf, dqL_prim_dx_vf, & ! -------
271270
dqL_prim_dy_vf, &
272271
dqL_prim_dz_vf, &

src/simulation/m_start_up.fpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,8 +1156,6 @@ contains
11561156
call s_2nd_order_tvd_rk(t_step, time_avg)
11571157
elseif (time_stepper == 3 .and. (.not. adap_dt)) then
11581158
call s_3rd_order_tvd_rk(t_step, time_avg)
1159-
! print *, 'DEBUG RK3 completed'
1160-
! call exit(33)
11611159
elseif (time_stepper == 3 .and. adap_dt) then
11621160
call s_strang_splitting(t_step, time_avg)
11631161
end if

src/simulation/m_time_steppers.fpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -630,14 +630,10 @@ contains
630630
end if
631631

632632
call s_compute_rhs(q_cons_ts(1)%vf, q_prim_vf, rhs_vf, pb_ts(1)%sf, rhs_pb, mv_ts(1)%sf, rhs_mv, t_step, time_avg)
633-
! print *, 'DEBUG RK3 step 1 compute_rhs completed'
634633

635-
! if (run_time_info) then
636-
if (.true.) then ! DEBUG ALWAYS WRITE RUN_TIME INFO
634+
if (run_time_info) then
637635
call s_write_run_time_information(q_prim_vf, t_step)
638636
end if
639-
! print *, 'DEBUG RK3 step 1 write run_time_information completed'
640-
! call exit(66)
641637

642638
if (probe_wrt) then
643639
call s_time_step_cycling(t_step)

src/simulation/m_viscous.fpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -997,8 +997,6 @@ contains
997997

998998
! Reconstruction in s1-direction ===================================
999999

1000-
! print *, 'DEBUG m_rhs s_reconstruct_cell_boundary_values_visc started'
1001-
10021000
if (norm_dir == 1) then
10031001
is1_viscous = ix; is2_viscous = iy; is3_viscous = iz
10041002
weno_dir = 1; is1_viscous%beg = is1_viscous%beg + weno_polyn

0 commit comments

Comments
 (0)