From 6736d30bd7aa2e874313eddced21a6e48cf47a33 Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Thu, 27 Jun 2013 13:02:17 +0100 Subject: [PATCH] Initialisation of uninitialised variable: compiler warning --- .../surfaceSlipDisplacementPointPatchVectorField.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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_);