Initialisation of uninitialised variable: compiler warning

This commit is contained in:
Hrvoje Jasak 2013-06-27 13:02:17 +01:00
parent 82491a5f79
commit 6736d30bd7

View file

@ -177,7 +177,7 @@ void surfaceSlipDisplacementPointPatchVectorField::evaluate
const scalar projectLen = mag(mesh.bounds().max()-mesh.bounds().min()); const scalar projectLen = mag(mesh.bounds().max()-mesh.bounds().min());
// For case of fixed projection vector: // For case of fixed projection vector:
vector projectVec; vector projectVec = vector::zero;
if (projectMode_ == FIXEDNORMAL) if (projectMode_ == FIXEDNORMAL)
{ {
vector n = projectDir_/mag(projectDir_); vector n = projectDir_/mag(projectDir_);