Skip to content

Commit 1cd88d7

Browse files
authored
Merge pull request #170 from ECP-WarpX/filter_gpu_bugfix
bug fixes for some refactored GPU filter code
2 parents 0346eb8 + 5d7ee19 commit 1cd88d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/Filter/Filter.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ Filter::ApplyStencil (FArrayBox& dstfab, const FArrayBox& srcfab,
6464
{
6565
BL_PROFILE("BilinearFilter::ApplyStencil(FArrayBox)");
6666
ncomp = std::min(ncomp, srcfab.nComp());
67-
const auto& src = srcfab.array(mfi);
68-
const auto& dst = dstfab.array(mfi);
67+
const auto& src = srcfab.array();
68+
const auto& dst = dstfab.array();
6969
const Box& gbx = amrex::grow(tbx,stencil_length_each_dir-1);
7070

7171
// tmpfab has enough ghost cells for the stencil
@@ -74,7 +74,7 @@ Filter::ApplyStencil (FArrayBox& dstfab, const FArrayBox& srcfab,
7474
auto const& tmp = tmp_fab.array();
7575

7676
// Copy values in srcfab into tmpfab
77-
const Box& ibx = gbx & srcmf[mfi].box();
77+
const Box& ibx = gbx & srcfab.box();
7878
AMREX_PARALLEL_FOR_4D ( gbx, ncomp, i, j, k, n,
7979
{
8080
if (ibx.contains(IntVect(AMREX_D_DECL(i,j,k)))) {

0 commit comments

Comments
 (0)