Skip to content

Commit

Permalink
Fixed missing magnetic energy from temperature ceil
Browse files Browse the repository at this point in the history
  • Loading branch information
forrestglines committed Jul 17, 2023
1 parent e695577 commit 828288d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eos/adiabatic_glmmhd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class AdiabaticGLMMHDEOS : public EquationOfState {
const Real eff_pressure_ceiling = gm1 * u_d * e_ceiling_;
if (w_p > eff_pressure_ceiling) {
// apply temperature ceiling, correct total energy
u_e = (u_d * e_ceiling_) + e_k;
u_e = (u_d * e_ceiling_) + e_k + e_B;
w_p = eff_pressure_ceiling;
}

Expand Down

0 comments on commit 828288d

Please sign in to comment.