Skip to content

Commit

Permalink
Fix pass by reference
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpkatz committed Oct 7, 2023
1 parent fd747b3 commit 68e28ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/radiation/MGFLD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,7 @@ void Radiation::compute_limiter(int level, const BoxArray& grids,
}

lam(i,j,k,g) = lam(ic,jc,kc,g);
});
});
} // nGroups
} // mfiter

Expand Down
2 changes: 1 addition & 1 deletion Source/radiation/filter.H
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ namespace filter
template<int width>
AMREX_GPU_HOST_DEVICE AMREX_INLINE
void load_filter_stencil(Array4<Real const> const input,
Array1D<Real, -width, width> stencil,
Array1D<Real, -width, width>& stencil,
int dir, int i, int j, int k, int g)
{
stencil(0) = input(i,j,k,g);
Expand Down

0 comments on commit 68e28ef

Please sign in to comment.