Skip to content

Commit 2bf3f0d

Browse files
committed
Delete the dead fluid-1 EOS shortcuts in the output routines
gamma = gammas(1) and friends were assigned and never read; lit_gamma was assigned in both output routines and read in neither.
1 parent a85d354 commit 2bf3f0d

2 files changed

Lines changed: 1 addition & 10 deletions

File tree

src/pre_process/m_data_output.fpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ contains
6767
integer :: t_step
6868
real(wp), dimension(nb) :: nRtmp
6969
real(wp) :: nbub
70-
real(wp) :: gamma, lit_gamma, pi_inf, qv
70+
real(wp) :: gamma, pi_inf, qv
7171
real(wp) :: rho
7272
real(wp) :: pres, T
7373
real(wp) :: rhoYks(1:num_species)
@@ -165,7 +165,6 @@ contains
165165
end if
166166

167167
gamma = gammas(1)
168-
lit_gamma = isentrope_n(1)
169168
pi_inf = pi_infs(1)
170169
qv = qvs(1)
171170

@@ -199,8 +198,6 @@ contains
199198

200199
call s_convert_to_mixture_variables(q_cons_vf, j, 0, 0, rho, gamma, pi_inf, qv)
201200

202-
lit_gamma = f_isentrope_exponent(gamma)
203-
204201
if ((i >= eqn_idx%species%beg) .and. (i <= eqn_idx%species%end)) then
205202
write (2, FMT) x_cb(j), q_cons_vf(i)%sf(j, 0, 0)/rho
206203
else if (((i >= eqn_idx%cont%beg) .and. (i <= eqn_idx%cont%end)) .or. ((i >= eqn_idx%adv%beg) &

src/simulation/m_data_output.fpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,6 @@ contains
303303
logical :: file_exist !< Logical used to check existence of current time-step directory
304304
character(LEN=15) :: FMT
305305
integer :: i, j, k, l, r
306-
real(wp) :: gamma, lit_gamma, pi_inf, qv !< Temporary EOS params
307306

308307
write (t_step_dir, '(A,I0,A,I0)') trim(case_dir) // '/p_all'
309308
write (t_step_dir, '(a,i0,a,i0)') trim(case_dir) // '/p_all/p', proc_rank, '/', t_step
@@ -377,11 +376,6 @@ contains
377376
call s_write_serial_ib_data(t_step)
378377
end if
379378

380-
gamma = gammas(1)
381-
lit_gamma = isentrope_n(1)
382-
pi_inf = pi_infs(1)
383-
qv = qvs(1)
384-
385379
if (precision == precision_single) then
386380
FMT = "(2F30.3)"
387381
else

0 commit comments

Comments
 (0)