Prevent warnings from Gcc 13.2.1 and Clang 17.0.6

This commit is contained in:
Will Bainbridge
2024-01-16 14:09:38 +00:00
parent 2f724bdc91
commit 11b2951a79
3 changed files with 19 additions and 13 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2017-2023 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2017-2024 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -83,8 +83,8 @@ Foam::compressibleInterPhaseTransportModel::compressibleInterPhaseTransportModel
mixture_.thermo1().rho(),
U,
alphaRhoPhi1_,
phi,
mixture.thermo1()
phi_,
mixture_.thermo1()
)
);
@ -96,8 +96,8 @@ Foam::compressibleInterPhaseTransportModel::compressibleInterPhaseTransportModel
mixture_.thermo2().rho(),
U,
alphaRhoPhi2_,
phi,
mixture.thermo2()
phi_,
mixture_.thermo2()
)
);
}
@ -108,7 +108,7 @@ Foam::compressibleInterPhaseTransportModel::compressibleInterPhaseTransportModel
rho,
U,
rhoPhi,
mixture
mixture_
);
mixtureMomentumTransport_->validate();

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2021-2023 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2021-2024 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -80,8 +80,8 @@ incompressibleInterPhaseTransportModel
alpha1,
U,
alphaPhi1_,
phi,
mixture.nuModel1()
phi_,
mixture_.nuModel1()
)
);
@ -92,8 +92,8 @@ incompressibleInterPhaseTransportModel
alpha2,
U,
alphaPhi2_,
phi,
mixture.nuModel2()
phi_,
mixture_.nuModel2()
)
);
}
@ -102,8 +102,8 @@ incompressibleInterPhaseTransportModel
turbulence_ = incompressible::momentumTransportModel::New
(
U,
phi,
mixture
phi_,
mixture_
);
turbulence_->validate();

View File

@ -165,6 +165,12 @@ public:
//- Destructor
virtual ~wallCellWallFunctionFvPatchScalarField()
{}
// Member Operators
//- Inherit assignment operators to prevent warnings
using fvPatchField<scalar>::operator=;
};