From b4e307874fe384d5b019ef9c825225153fd4cc76 Mon Sep 17 00:00:00 2001 From: Weiqun Zhang Date: Mon, 4 Mar 2024 08:35:34 -0800 Subject: [PATCH] Fix warning: do not return const value. --- Utils/hydro_bcs_K.H | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Utils/hydro_bcs_K.H b/Utils/hydro_bcs_K.H index 11b0d3e64..050d6f38e 100644 --- a/Utils/hydro_bcs_K.H +++ b/Utils/hydro_bcs_K.H @@ -31,9 +31,9 @@ namespace HydroBC{ // Choose between single BC per domain face or position dependent BC array // [[nodiscard]] AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE -const amrex::BCRec getBC (const int i, const int j, const int k, const int n, - const amrex::Box& m_domain, const amrex::BCRec* bcr, - amrex::Array4 const& bca) +amrex::BCRec getBC (const int i, const int j, const int k, const int n, + const amrex::Box& m_domain, const amrex::BCRec* bcr, + amrex::Array4 const& bca) { if ( !bca ) { return bcr[n]; }