Skip to content

Commit

Permalink
quiet HIP compiler warnings (#1152)
Browse files Browse the repository at this point in the history
  • Loading branch information
asalmgren authored Jul 6, 2023
1 parent e03ef78 commit 47991a4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Source/ERF.H
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion Source/IO/ERF_Write1DProfiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ ERF::derive_diag_profiles(Gpu::HostVector<Real>& h_avg_u , Gpu::HostVector<Rea
h_avg_pw = sumToLine(mf_out,20,1,domain,zdir);

// Divide by the total number of cells we are averaging over
for (int k = 0; k < h_avg_u.size(); ++k) {
int h_avg_u_size = static_cast<int>(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;
Expand Down
1 change: 0 additions & 1 deletion Source/TimeIntegration/ERF_fast_rhs_MT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<Real, AMREX_SPACEDIM> dxInv = geom.InvCellSizeArray();

Real dxi = dxInv[0];
Expand Down
2 changes: 1 addition & 1 deletion Source/Utils/PlaneAverage.H
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 47991a4

Please sign in to comment.