Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] clean-up the transverse flux correction #1920

Open
wants to merge 10 commits into
base: development
Choose a base branch
from
Prev Previous commit
Next Next commit
fix 2-d update
  • Loading branch information
zingale committed Jun 25, 2021
commit 91667fffebfe44b2742b3708a5a57a046732802a
4 changes: 2 additions & 2 deletions Source/hydro/trans.cpp
Original file line number Diff line number Diff line change
@@ -196,8 +196,8 @@ Castro::actual_trans_single(const Box& bx,
#endif

#if AMREX_SPACEDIM == 2
U_int[n] += - hdt * (area_t(ir,jr,kr) * flux_t(ir,jr,kr,URHO) -
area_t(il,jl,kl) * flux_t(il,jl,kl,URHO)) * volinv;
U_int[n] += - hdt * (area_t(ir,jr,kr) * flux_t(ir,jr,kr,n) -
area_t(il,jl,kl) * flux_t(il,jl,kl,n)) * volinv;
#else
U_int[n] += - cdtdx * (flux_t(ir,jr,kr,n) - flux_t(il,jl,kl,n));
#endif