diff --git a/src/dynamicMesh/meshMotion/fvMotionSolver/pointPatchFields/derived/surfaceSlipDisplacement/surfaceSlipDisplacementPointPatchVectorField.C b/src/dynamicMesh/meshMotion/fvMotionSolver/pointPatchFields/derived/surfaceSlipDisplacement/surfaceSlipDisplacementPointPatchVectorField.C index 9e8dedabf..adcb8f99a 100644 --- a/src/dynamicMesh/meshMotion/fvMotionSolver/pointPatchFields/derived/surfaceSlipDisplacement/surfaceSlipDisplacementPointPatchVectorField.C +++ b/src/dynamicMesh/meshMotion/fvMotionSolver/pointPatchFields/derived/surfaceSlipDisplacement/surfaceSlipDisplacementPointPatchVectorField.C @@ -177,7 +177,7 @@ void surfaceSlipDisplacementPointPatchVectorField::evaluate const scalar projectLen = mag(mesh.bounds().max()-mesh.bounds().min()); // For case of fixed projection vector: - vector projectVec; + vector projectVec = vector::zero; if (projectMode_ == FIXEDNORMAL) { vector n = projectDir_/mag(projectDir_);