Skip to content

Commit

Permalink
fix bug HLLC Riemann solver.
Browse files Browse the repository at this point in the history
  • Loading branch information
arnodu authored and Pierre Kestener committed Oct 6, 2020
1 parent 45aba1b commit 6615cc8
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*rl*qright[IW]*qright[IW];
ecinl += HALF_F*rr*qright[IW]*qright[IW];

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

0 comments on commit 6615cc8

Please sign in to comment.