diff --git a/src/projection/incflo_apply_cc_projection.cpp b/src/projection/incflo_apply_cc_projection.cpp index 6b5f02e3..46da3058 100644 --- a/src/projection/incflo_apply_cc_projection.cpp +++ b/src/projection/incflo_apply_cc_projection.cpp @@ -111,7 +111,7 @@ average_mac_to_ccvel (const Array& fc, MultiFab& cc) #ifdef AMREX_USE_GPU if (Gpu::inLaunchRegion() && cc.isFusingCandidate()) { - auto& ccma = cc.arrays(); + auto const& ccma = cc.arrays(); AMREX_D_TERM(auto const& fxma = fc[0]->arrays();, auto const& fyma = fc[1]->arrays();, auto const& fzma = fc[2]->arrays(););