Skip to content

Commit 18210fc

Browse files
committed
temp
1 parent 7087491 commit 18210fc

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/simulation/include/inline_riemann.fpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,9 @@
5959
end if
6060
end do
6161
gamma_avg = Cp_avg/Cv_avg
62-
c_avggg = 0.0d0
6362

64-
do i = 1, num_species
65-
Phi_avg(i) = (gamma_avg - 1.d0)*(vel_avg_rms/2.0d0 - h_avg_2(i)) + gamma_avg*gas_constant/mol_weights(i)*T_avg
66-
c_avggg = c_avggg + Yi_avg(i)*Phi_avg(i)
67-
end do
63+
Phi_avg(:) = (gamma_avg - 1.d0)*(vel_avg_rms/2.0d0 - h_avg_2(:)) + gamma_avg*gas_constant/mol_weights(:)*T_avg
64+
c_avggg = sum(Yi_avg(:)*Phi_avg(:))
6865
#:endif
6966

7067
#:enddef roe_avg

0 commit comments

Comments
 (0)