mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: refinementSurfaces: prevent copying of unitialised (but unused) variables triggering error
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -938,7 +938,9 @@ void Foam::refinementSurfaces::findNearestIntersection
|
|||||||
surface1 = -1;
|
surface1 = -1;
|
||||||
hit1.setSize(start.size());
|
hit1.setSize(start.size());
|
||||||
region1.setSize(start.size());
|
region1.setSize(start.size());
|
||||||
|
region1 = -1;
|
||||||
normal1.setSize(start.size());
|
normal1.setSize(start.size());
|
||||||
|
normal1 = vector::zero;
|
||||||
|
|
||||||
// Current end of segment to test.
|
// Current end of segment to test.
|
||||||
pointField nearest(end);
|
pointField nearest(end);
|
||||||
|
|||||||
Reference in New Issue
Block a user