aboutsummaryrefslogtreecommitdiff
path: root/Source/Utils/Interpolate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Utils/Interpolate.cpp')
-rw-r--r--Source/Utils/Interpolate.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Utils/Interpolate.cpp b/Source/Utils/Interpolate.cpp
index 67781fae6..5a163a4e4 100644
--- a/Source/Utils/Interpolate.cpp
+++ b/Source/Utils/Interpolate.cpp
@@ -51,7 +51,7 @@ namespace Interpolate
// - Fully nodal
if ( F_fp.is_nodal() ){
- amrex::IntVect refinement_vector{AMREX_D_DECL(r_ratio[0], r_ratio[1], r_ratio[2])};
+ const amrex::IntVect refinement_vector{AMREX_D_DECL(r_ratio[0], r_ratio[1], r_ratio[2])};
node_bilinear_interp.interp(cfab, 0, ffab, 0, 1,
finebx, refinement_vector, {}, {}, {}, 0, 0, RunOn::Device);
} else {
@@ -85,9 +85,9 @@ namespace Interpolate
interpolated_F[1] = std::make_unique<MultiFab>(Fy_fp->boxArray(), dm, 1, ngrow);
interpolated_F[2] = std::make_unique<MultiFab>(Fz_fp->boxArray(), dm, 1, ngrow);
- IntVect fx_type = interpolated_F[0]->ixType().toIntVect();
- IntVect fy_type = interpolated_F[1]->ixType().toIntVect();
- IntVect fz_type = interpolated_F[2]->ixType().toIntVect();
+ const IntVect fx_type = interpolated_F[0]->ixType().toIntVect();
+ const IntVect fy_type = interpolated_F[1]->ixType().toIntVect();
+ const IntVect fz_type = interpolated_F[2]->ixType().toIntVect();
#ifdef AMREX_USE_OMP
#pragma omp parallel if (amrex::Gpu::notInLaunchRegion())