diff --git a/src/fvMotionSolver/pointPatchFields/derived/surfaceDisplacement/surfaceDisplacementPointPatchVectorField.C b/src/fvMotionSolver/pointPatchFields/derived/surfaceDisplacement/surfaceDisplacementPointPatchVectorField.C index bbafb189faa97eba4faea0aa5e69ad1d163e70fd..9c0cf511dce6faa06860e2d7fd85501439cf4c04 100644 --- a/src/fvMotionSolver/pointPatchFields/derived/surfaceDisplacement/surfaceDisplacementPointPatchVectorField.C +++ b/src/fvMotionSolver/pointPatchFields/derived/surfaceDisplacement/surfaceDisplacementPointPatchVectorField.C @@ -329,7 +329,7 @@ surfaceDisplacementPointPatchVectorField surfacesDict_(dict.subDict("geometry")), projectMode_(projectModeNames_.read(dict.lookup("projectMode"))), projectDir_(dict.lookup("projectDirection")), - wedgePlane_(readLabel(dict.lookup("wedgePlane"))), + wedgePlane_(dict.lookupOrDefault(dict.lookup("wedgePlane"), -1)), frozenPointsZone_(dict.lookupOrDefault("frozenPointsZone", word::null)) { if (velocity_.x() < 0 || velocity_.y() < 0 || velocity_.z() < 0) diff --git a/src/fvMotionSolver/pointPatchFields/derived/surfaceSlipDisplacement/surfaceSlipDisplacementPointPatchVectorField.C b/src/fvMotionSolver/pointPatchFields/derived/surfaceSlipDisplacement/surfaceSlipDisplacementPointPatchVectorField.C index 8f37cd91abadbe0bc26a3f7a49985a961902721c..4944c82ff1c5cf8f94513bb1010780b7a27182bb 100644 --- a/src/fvMotionSolver/pointPatchFields/derived/surfaceSlipDisplacement/surfaceSlipDisplacementPointPatchVectorField.C +++ b/src/fvMotionSolver/pointPatchFields/derived/surfaceSlipDisplacement/surfaceSlipDisplacementPointPatchVectorField.C @@ -326,7 +326,7 @@ surfaceSlipDisplacementPointPatchVectorField surfacesDict_(dict.subDict("geometry")), projectMode_(projectModeNames_.read(dict.lookup("projectMode"))), projectDir_(dict.lookup("projectDirection")), - wedgePlane_(readLabel(dict.lookup("wedgePlane"))), + wedgePlane_(dict.lookupOrDefault("wedgePlane", -1)), frozenPointsZone_(dict.lookupOrDefault("frozenPointsZone", word::null)) {}