Skip to content

Commit

Permalink
Fix incflo_redistribute for non-EB
Browse files Browse the repository at this point in the history
  • Loading branch information
cgilet committed Oct 2, 2023
1 parent 047bbd1 commit 89c716a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/incflo_redistribute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ incflo::redistribute_term ( MultiFab& result,
MultiFab*& vel_eb)
{
// ************************************************************************
// Redistribute result_tmp and pass out result
// Redistribute temporary and pass out result
// ************************************************************************
AMREX_ASSERT(result.nComp() == state.nComp());

Expand Down Expand Up @@ -152,9 +152,7 @@ incflo::redistribute_term ( MFIter const& mfi,
amrex::ParallelFor(bx, ncomp,
[=] AMREX_GPU_DEVICE (int i, int j, int k, int n) noexcept
{
//FIXME -- Need to check and make sure this is always how we want to
// use this...
result(i,j,k,n) = state(i,j,k,n) + dt * temporary(i,j,k,n);
result(i,j,k,n) = temporary(i,j,k,n);
});
}
}
Expand Down

0 comments on commit 89c716a

Please sign in to comment.