We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7087491 commit 18210fcCopy full SHA for 18210fc
src/simulation/include/inline_riemann.fpp
@@ -59,12 +59,9 @@
59
end if
60
end do
61
gamma_avg = Cp_avg/Cv_avg
62
- c_avggg = 0.0d0
63
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
+ Phi_avg(:) = (gamma_avg - 1.d0)*(vel_avg_rms/2.0d0 - h_avg_2(:)) + gamma_avg*gas_constant/mol_weights(:)*T_avg
+ c_avggg = sum(Yi_avg(:)*Phi_avg(:))
68
#:endif
69
70
#:enddef roe_avg
0 commit comments