Skip to content

Commit

Permalink
Fix bug in HLLC 3D.
Browse files Browse the repository at this point in the history
  • Loading branch information
pkestene committed Feb 18, 2024
1 parent 866aab9 commit a7e369d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/RiemannSolvers.h
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ void riemann_hllc(const HydroState& qleft,
real_t ecinr = HALF_F*rr*ur*ur;
ecinr += HALF_F*rr*qright[IV]*qright[IV];
if (std::is_same<HydroState,HydroState3d>::value)
ecinl += HALF_F*rr*qright[IW]*qright[IW];
ecinr += HALF_F*rr*qright[IW]*qright[IW];

real_t etotr = pr*entho+ecinr;
real_t ptotr = pr;
Expand Down

0 comments on commit a7e369d

Please sign in to comment.