diff --git a/src/finiteVolume/fields/fvsPatchFields/derived/nonConformalMappedPolyFaces/nonConformalMappedPolyFacesFvsPatchLabelField.C b/src/finiteVolume/fields/fvsPatchFields/derived/nonConformalMappedPolyFaces/nonConformalMappedPolyFacesFvsPatchLabelField.C index e031dd62e1..90dbd7c77d 100644 --- a/src/finiteVolume/fields/fvsPatchFields/derived/nonConformalMappedPolyFaces/nonConformalMappedPolyFacesFvsPatchLabelField.C +++ b/src/finiteVolume/fields/fvsPatchFields/derived/nonConformalMappedPolyFaces/nonConformalMappedPolyFacesFvsPatchLabelField.C @@ -62,7 +62,7 @@ nonConformalMappedPolyFacesFvsPatchLabelField ( db().time().processorCase() ? dict.lookup("procOffsets") - : labelList(1, 0) + : labelList(1, label(0)) ) { labelField::operator= diff --git a/src/meshTools/patchIntersection/FacePatchIntersection.C b/src/meshTools/patchIntersection/FacePatchIntersection.C index 1dc5b960f8..23fbd6dd4f 100644 --- a/src/meshTools/patchIntersection/FacePatchIntersection.C +++ b/src/meshTools/patchIntersection/FacePatchIntersection.C @@ -533,9 +533,9 @@ Foam::FacePatchIntersection::FacePatchIntersection inplaceRenumber(oldPointNewPoints, this->tgtEdgePoints_); // Remove deleted points - inplaceRemove(this->faces_, -1); - inplaceRemove(this->srcEdgePoints_, -1); - inplaceRemove(this->tgtEdgePoints_, -1); + inplaceRemove(this->faces_, label(-1)); + inplaceRemove(this->srcEdgePoints_, label(-1)); + inplaceRemove(this->tgtEdgePoints_, label(-1)); } // Step 6: Reporting diff --git a/src/meshTools/patchIntersection/TriPatchIntersection.C b/src/meshTools/patchIntersection/TriPatchIntersection.C index 43b94e8ee1..f4619d4fe5 100644 --- a/src/meshTools/patchIntersection/TriPatchIntersection.C +++ b/src/meshTools/patchIntersection/TriPatchIntersection.C @@ -695,7 +695,7 @@ Foam::TriPatchIntersection::edgePatchEdge if (patchPointi == -1) { - return pointPatchEdges[pointi] == -1 ? 0 : 1; + return pointPatchEdges[pointi] == -1 ? label(0) : label(1); } else { @@ -1628,7 +1628,7 @@ Foam::TriPatchIntersection::snapPatchFaceTris checkPatchFace(tgtFacei, false); // Insertion workspace - labelList insertPointis(1), insertEdgeis(2, -1), fixedEdgeis(0); + labelList insertPointis(1), insertEdgeis(2, label(-1)), fixedEdgeis(0); // Do source-point-target-edge snapping forAll(srcFaceSnapTgtFaceEdge, srcFacePointi) @@ -2427,7 +2427,7 @@ Foam::TriPatchIntersection::conformPatchFaceTris } } - return -1; + return label(-1); }; // Track from a point on a triangle towards a given point. Stop at an edge