We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb5189f commit 588beb9Copy full SHA for 588beb9
1 file changed
EOS/primordial_chem/actual_eos.H
@@ -266,6 +266,11 @@ void actual_eos (I input, T& state)
266
state.e = eint;
267
}
268
269
+ if constexpr (has_pressure<T>::value) {
270
+ Real pressure = state.rho * eint / sum_gammasinv;
271
+ state.p = pressure;
272
+ }
273
+
274
Real dedT = sum_gammasinv * sum_Abarinv * gasconstant;
275
if constexpr (has_energy<T>::value) {
276
state.dedT = dedT;
0 commit comments