Skip to content

Commit

Permalink
move pressure within constexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
psharda committed Jul 26, 2023
1 parent 301d71d commit 8a62784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EOS/primordial_chem/actual_eos.H
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ void actual_eos (I input, T& state)
state.e = eint;
}

Real pressure = state.rho * eint / sum_gammasinv;
if constexpr (has_pressure<T>::value) {
Real pressure = state.rho * eint / sum_gammasinv;
state.p = pressure;
}

Expand Down

0 comments on commit 8a62784

Please sign in to comment.