COMP: refinementSurfaces: prevent copying of unitialised (but unused) variables triggering error

This commit is contained in:
mattijs 2014-02-11 11:38:36 +00:00 committed by Andrew Heather
parent 8acf2daaba
commit 44ac461a1d

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -938,7 +938,9 @@ void Foam::refinementSurfaces::findNearestIntersection
surface1 = -1;
hit1.setSize(start.size());
region1.setSize(start.size());
region1 = -1;
normal1.setSize(start.size());
normal1 = vector::zero;
// Current end of segment to test.
pointField nearest(end);