From ed69b1787a567baad13b9c1c4cc06b8510215488 Mon Sep 17 00:00:00 2001 From: Marc Henry de Frahan Date: Tue, 26 Nov 2024 09:50:55 -0700 Subject: [PATCH] fix warns --- amr-wind/transport_models/TransportModel.H | 2 +- amr-wind/transport_models/TwoPhaseTransport.H | 4 ++-- amr-wind/turbulence/LES/AMD.cpp | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/amr-wind/transport_models/TransportModel.H b/amr-wind/transport_models/TransportModel.H index f62ebdd3d3..60e553fc4f 100644 --- a/amr-wind/transport_models/TransportModel.H +++ b/amr-wind/transport_models/TransportModel.H @@ -31,7 +31,7 @@ class TransportModel : public Factory public: static std::string base_identifier() { return "TransportModel"; } - virtual ~TransportModel() = default; + ~TransportModel() override = default; //! Dynamic laminar viscosity (kg/m/s) virtual std::unique_ptr mu() = 0; diff --git a/amr-wind/transport_models/TwoPhaseTransport.H b/amr-wind/transport_models/TwoPhaseTransport.H index 624b0041d8..21cf14b03a 100644 --- a/amr-wind/transport_models/TwoPhaseTransport.H +++ b/amr-wind/transport_models/TwoPhaseTransport.H @@ -21,11 +21,11 @@ public: explicit TwoPhaseTransport(const CFDSim& sim) : m_sim(sim), m_repo(sim.repo()) { - auto& physics_mgr = m_sim.physics_manager(); + const auto& physics_mgr = m_sim.physics_manager(); if (!physics_mgr.contains("MultiPhase")) { amrex::Abort("TwoPhaseTransport requires MultiPhase physics"); } - auto& multiphase = physics_mgr.get(); + const auto& multiphase = physics_mgr.get(); m_ifacetype = multiphase.interface_capturing_method(); amrex::ParmParse pp("transport"); diff --git a/amr-wind/turbulence/LES/AMD.cpp b/amr-wind/turbulence/LES/AMD.cpp index 376e00e96b..8230e5c028 100644 --- a/amr-wind/turbulence/LES/AMD.cpp +++ b/amr-wind/turbulence/LES/AMD.cpp @@ -23,7 +23,6 @@ AMD::AMD(CFDSim& sim) , m_rho(sim.repo().get_field("density")) , m_pa_temp(m_temperature, sim.time(), m_normal_dir, true) { - auto& phy_mgr = this->m_sim.physics_manager(); { amrex::ParmParse pp("incflo"); pp.queryarr("gravity", m_gravity);