From 47991a4ae9629f05b87eb3d68d98b19c331eeec0 Mon Sep 17 00:00:00 2001 From: Ann Almgren Date: Thu, 6 Jul 2023 07:32:50 -0700 Subject: [PATCH] quiet HIP compiler warnings (#1152) --- Source/ERF.H | 2 +- Source/IO/ERF_Write1DProfiles.cpp | 3 ++- Source/TimeIntegration/ERF_fast_rhs_MT.cpp | 1 - Source/Utils/PlaneAverage.H | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/ERF.H b/Source/ERF.H index 5a6bc7efd..e700f57f4 100644 --- a/Source/ERF.H +++ b/Source/ERF.H @@ -89,7 +89,7 @@ public: // Declare a default move constructor so we ensure the destructor is // not called when we return an object of this class by value - ERF(ERF&&) noexcept = default; + ERF(ERF&&) noexcept = delete; // Declare a default move assignment operator ERF& operator=(ERF&& other) noexcept = delete; diff --git a/Source/IO/ERF_Write1DProfiles.cpp b/Source/IO/ERF_Write1DProfiles.cpp index 29c72a3ab..84c38e77a 100644 --- a/Source/IO/ERF_Write1DProfiles.cpp +++ b/Source/IO/ERF_Write1DProfiles.cpp @@ -273,7 +273,8 @@ ERF::derive_diag_profiles(Gpu::HostVector& h_avg_u , Gpu::HostVector(h_avg_u.size()); + for (int k = 0; k < h_avg_u_size; ++k) { h_avg_rho[k] /= area_z; h_avg_ksgs[k] /= area_z; h_avg_th[k] /= area_z; h_avg_thth[k] /= area_z; h_avg_uu[k] /= area_z; h_avg_uv[k] /= area_z; h_avg_uw[k] /= area_z; diff --git a/Source/TimeIntegration/ERF_fast_rhs_MT.cpp b/Source/TimeIntegration/ERF_fast_rhs_MT.cpp index 80266c119..69a9683db 100644 --- a/Source/TimeIntegration/ERF_fast_rhs_MT.cpp +++ b/Source/TimeIntegration/ERF_fast_rhs_MT.cpp @@ -82,7 +82,6 @@ void erf_fast_rhs_MT (int step, int /*level*/, // How much do we project forward the (rho theta) that is used in the horizontal momentum equations Real beta_d = 0.1; - const Box domain(geom.Domain()); const GpuArray dxInv = geom.InvCellSizeArray(); Real dxi = dxInv[0]; diff --git a/Source/Utils/PlaneAverage.H b/Source/Utils/PlaneAverage.H index 65cd38517..a18b765f4 100644 --- a/Source/Utils/PlaneAverage.H +++ b/Source/Utils/PlaneAverage.H @@ -16,7 +16,7 @@ public: explicit PlaneAverage(const amrex::MultiFab* field_in, amrex::Geometry geom_in, int axis_in); - PlaneAverage() = default; + PlaneAverage() = delete; ~PlaneAverage() = default; AMREX_FORCE_INLINE