surfaceDisplacementPointPatchVectorField: Initialise variable

This commit is contained in:
Henry
2013-06-20 10:45:09 +01:00
parent aef8c35ea0
commit 01bb8728bc

View File

@ -72,7 +72,7 @@ void surfaceDisplacementPointPatchVectorField::calcProjection
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_);