diff --git a/src/OpenFOAM/meshes/polyMesh/polyMesh.C b/src/OpenFOAM/meshes/polyMesh/polyMesh.C index 1f0f29e101..441dc2c7d9 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyMesh.C +++ b/src/OpenFOAM/meshes/polyMesh/polyMesh.C @@ -546,7 +546,7 @@ Foam::polyMesh::polyMesh IOobject::NO_READ, IOobject::AUTO_WRITE ), - 0 + label(0) ), neighbour_ ( @@ -559,7 +559,7 @@ Foam::polyMesh::polyMesh IOobject::NO_READ, IOobject::AUTO_WRITE ), - 0 + label(0) ), clearedPrimitives_(false), boundary_ diff --git a/src/OpenFOAM/meshes/polyMesh/polyMeshFromShapeMesh.C b/src/OpenFOAM/meshes/polyMesh/polyMeshFromShapeMesh.C index 11d1cd0fbc..4798e11239 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyMeshFromShapeMesh.C +++ b/src/OpenFOAM/meshes/polyMesh/polyMeshFromShapeMesh.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -426,7 +426,7 @@ Foam::polyMesh::polyMesh IOobject::NO_READ, IOobject::AUTO_WRITE ), - 0 + label(0) ), owner_ ( @@ -439,7 +439,7 @@ Foam::polyMesh::polyMesh IOobject::NO_READ, IOobject::AUTO_WRITE ), - 0 + label(0) ), neighbour_ ( @@ -452,7 +452,7 @@ Foam::polyMesh::polyMesh IOobject::NO_READ, IOobject::AUTO_WRITE ), - 0 + label(0) ), clearedPrimitives_(false), boundary_ @@ -715,7 +715,7 @@ Foam::polyMesh::polyMesh IOobject::NO_READ, IOobject::AUTO_WRITE ), - 0 + label(0) ), owner_ ( @@ -728,7 +728,7 @@ Foam::polyMesh::polyMesh IOobject::NO_READ, IOobject::AUTO_WRITE ), - 0 + label(0) ), neighbour_ ( @@ -741,7 +741,7 @@ Foam::polyMesh::polyMesh IOobject::NO_READ, IOobject::AUTO_WRITE ), - 0 + label(0) ), clearedPrimitives_(false), boundary_ diff --git a/src/finiteVolume/fvMesh/singleCellFvMesh/singleCellFvMesh.C b/src/finiteVolume/fvMesh/singleCellFvMesh/singleCellFvMesh.C index d8ba0f1f94..94517daccd 100644 --- a/src/finiteVolume/fvMesh/singleCellFvMesh/singleCellFvMesh.C +++ b/src/finiteVolume/fvMesh/singleCellFvMesh/singleCellFvMesh.C @@ -414,7 +414,7 @@ Foam::singleCellFvMesh::singleCellFvMesh io.readOpt(), io.writeOpt() ), - 0 + label(0) ), patchFaceMap_ ( diff --git a/src/lagrangian/parcel/submodels/Momentum/InjectionModel/PatchInjection/patchInjectionBase.C b/src/lagrangian/parcel/submodels/Momentum/InjectionModel/PatchInjection/patchInjectionBase.C index 13286f0767..92453af3a6 100644 --- a/src/lagrangian/parcel/submodels/Momentum/InjectionModel/PatchInjection/patchInjectionBase.C +++ b/src/lagrangian/parcel/submodels/Momentum/InjectionModel/PatchInjection/patchInjectionBase.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2013-2022 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2013-2023 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -156,7 +156,7 @@ void Foam::patchInjectionBase::setPositionAndCell } } - return 0; + return label(0); }; const polyPatch& patch = mesh.boundaryMesh()[patchId_];