Skip to content

Commit

Permalink
fix warns
Browse files Browse the repository at this point in the history
  • Loading branch information
marchdf committed Nov 27, 2024
1 parent a8f7a45 commit ed69b17
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion amr-wind/transport_models/TransportModel.H
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class TransportModel : public Factory<TransportModel, const CFDSim&>
public:
static std::string base_identifier() { return "TransportModel"; }

virtual ~TransportModel() = default;
~TransportModel() override = default;

//! Dynamic laminar viscosity (kg/m/s)
virtual std::unique_ptr<ScratchField> mu() = 0;
Expand Down
4 changes: 2 additions & 2 deletions amr-wind/transport_models/TwoPhaseTransport.H
Original file line number Diff line number Diff line change
Expand Up @@ -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<MultiPhase>();
const auto& multiphase = physics_mgr.get<MultiPhase>();
m_ifacetype = multiphase.interface_capturing_method();

amrex::ParmParse pp("transport");
Expand Down
1 change: 0 additions & 1 deletion amr-wind/turbulence/LES/AMD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ AMD<Transport>::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);
Expand Down

0 comments on commit ed69b17

Please sign in to comment.