Initialisation of uninitialised variable: compiler warning
This commit is contained in:
parent
82491a5f79
commit
6736d30bd7
1 changed files with 1 additions and 1 deletions
|
@ -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_);
|
||||
|
|
Reference in a new issue