Skip to content

Commit

Permalink
Change to const& in call signature.
Browse files Browse the repository at this point in the history
  • Loading branch information
AMLattanzi committed Oct 21, 2024
1 parent b39f10d commit 5173dc9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Src/Base/AMReX_MultiFabUtil.H
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ namespace amrex
const MultiFab& cc,
const Geometry& geom, int start_comp, int ncomp,
bool interpolate=false,
RealBox bnd_rbx = RealBox());
RealBox const& bnd_rbx = RealBox());

/**
* \brief Get data in a cell of MultiFab/FabArray
Expand All @@ -189,7 +189,7 @@ namespace amrex
* specified by a direction and a cell.
*/
template <typename MF, std::enable_if_t<IsFabArray<MF>::value,int> FOO = 0>
MF get_line_data (MF const& mf, int dir, IntVect const& cell, Box bnd_bx = Box());
MF get_line_data (MF const& mf, int dir, IntVect const& cell, Box const& bnd_bx = Box());

//! Return an iMultiFab that has the same BoxArray and DistributionMapping
//! as the coarse MultiFab cmf. Cells covered by the coarsened fine grids
Expand Down Expand Up @@ -997,7 +997,7 @@ Vector<typename MF::value_type> get_cell_data (MF const& mf, IntVect const& cell
}

template <typename MF, std::enable_if_t<IsFabArray<MF>::value,int> FOO>
MF get_line_data (MF const& mf, int dir, IntVect const& cell, Box bnd_bx)
MF get_line_data (MF const& mf, int dir, IntVect const& cell, Box const& bnd_bx)
{
bool do_bnd = (!bnd_bx.isEmpty());

Expand Down
2 changes: 1 addition & 1 deletion Src/Base/AMReX_MultiFabUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ namespace amrex
return amrex::cast<FabArray<BaseFab<Long> > > (imf);
}

std::unique_ptr<MultiFab> get_slice_data(int dir, Real coord, const MultiFab& cc, const Geometry& geom, int start_comp, int ncomp, bool interpolate, RealBox bnd_rbx) {
std::unique_ptr<MultiFab> get_slice_data(int dir, Real coord, const MultiFab& cc, const Geometry& geom, int start_comp, int ncomp, bool interpolate, RealBox const& bnd_rbx) {

BL_PROFILE("amrex::get_slice_data");

Expand Down

0 comments on commit 5173dc9

Please sign in to comment.