From 11b2951a790d2adccaf3ca9958945abe7dd8a6c7 Mon Sep 17 00:00:00 2001 From: Will Bainbridge Date: Tue, 16 Jan 2024 14:09:38 +0000 Subject: [PATCH] Prevent warnings from Gcc 13.2.1 and Clang 17.0.6 --- .../compressibleInterPhaseTransportModel.C | 12 ++++++------ .../incompressibleInterPhaseTransportModel.C | 14 +++++++------- .../wallCellWallFunctionFvPatchScalarField.H | 6 ++++++ 3 files changed, 19 insertions(+), 13 deletions(-) diff --git a/applications/modules/compressibleVoF/compressibleInterPhaseTransportModel/compressibleInterPhaseTransportModel.C b/applications/modules/compressibleVoF/compressibleInterPhaseTransportModel/compressibleInterPhaseTransportModel.C index b024dc0f54..b5d288227c 100644 --- a/applications/modules/compressibleVoF/compressibleInterPhaseTransportModel/compressibleInterPhaseTransportModel.C +++ b/applications/modules/compressibleVoF/compressibleInterPhaseTransportModel/compressibleInterPhaseTransportModel.C @@ -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(); diff --git a/applications/modules/incompressibleVoF/incompressibleInterPhaseTransportModel/incompressibleInterPhaseTransportModel.C b/applications/modules/incompressibleVoF/incompressibleInterPhaseTransportModel/incompressibleInterPhaseTransportModel.C index 92bac05794..f4a8ce82e9 100644 --- a/applications/modules/incompressibleVoF/incompressibleInterPhaseTransportModel/incompressibleInterPhaseTransportModel.C +++ b/applications/modules/incompressibleVoF/incompressibleInterPhaseTransportModel/incompressibleInterPhaseTransportModel.C @@ -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(); diff --git a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/wallCellWallFunction/wallCellWallFunctionFvPatchScalarField.H b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/wallCellWallFunction/wallCellWallFunctionFvPatchScalarField.H index 2242e10365..138c6dc555 100644 --- a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/wallCellWallFunction/wallCellWallFunctionFvPatchScalarField.H +++ b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/wallCellWallFunction/wallCellWallFunctionFvPatchScalarField.H @@ -165,6 +165,12 @@ public: //- Destructor virtual ~wallCellWallFunctionFvPatchScalarField() {} + + + // Member Operators + + //- Inherit assignment operators to prevent warnings + using fvPatchField::operator=; };