Skip to content
Snippets Groups Projects
Commit 01bb8728 authored by Henry's avatar Henry
Browse files

surfaceDisplacementPointPatchVectorField: Initialise variable

parent aef8c35e
Branches
Tags
No related merge requests found
...@@ -72,7 +72,7 @@ void surfaceDisplacementPointPatchVectorField::calcProjection ...@@ -72,7 +72,7 @@ void surfaceDisplacementPointPatchVectorField::calcProjection
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_);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment