Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions Source/Hydro/Godunov/Godunov_2D_eb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ Godunov_umeth_eb (
// X interface corrections
// *******************************************************************************
cdir = 0;
const Box& tybx = grow(bx_to_fill, cdir, 1);
const Box& tybx = grow(bx_to_fill, 1);
FArrayBox qm(bxg2, QVAR, amrex::The_Async_Arena());
FArrayBox qp(bxg1, QVAR, amrex::The_Async_Arena());
auto const& qmarr = qm.array();
Expand All @@ -197,7 +197,9 @@ Godunov_umeth_eb (
}
});

const Box& xfxbx = surroundingNodes(bx_to_fill, cdir);
// This box must be grown by one in transverse direction so we can
// do tangential interpolation when taking divergence later
const Box& xfxbx = surroundingNodes( grow(bx_to_fill, 1, 1-cdir), cdir);

// Final Riemann problem X
ParallelFor(xfxbx, [=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept
Expand All @@ -212,7 +214,7 @@ Godunov_umeth_eb (
// Y interface corrections
// *******************************************************************************
cdir = 1;
const Box& txbx = grow(bx_to_fill, cdir, 1);
const Box& txbx = grow(bx_to_fill, 1);

ParallelFor(txbx, [=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept
{
Expand All @@ -222,8 +224,11 @@ Godunov_umeth_eb (
}
});

// This box must be grown by one in transverse direction so we can
// do tangential interpolation when taking divergence later
const Box& yfxbx = surroundingNodes( grow(bx_to_fill, 1, 1-cdir), cdir);

// Final Riemann problem Y
const Box& yfxbx = surroundingNodes(bx_to_fill, cdir);
ParallelFor(yfxbx, [=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept
{
if (!flag_arr(i,j,k).isCovered() && !flag_arr(i,j-1,k).isCovered()) {
Expand Down