mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: missing initialisation of boolList
This commit is contained in:
@ -113,27 +113,30 @@ faceSet::~faceSet()
|
|||||||
|
|
||||||
void faceSet::sync(const polyMesh& mesh)
|
void faceSet::sync(const polyMesh& mesh)
|
||||||
{
|
{
|
||||||
boolList set(mesh.nFaces());
|
boolList set(mesh.nFaces(), false);
|
||||||
|
|
||||||
forAllConstIter(faceSet, *this, iter)
|
forAllConstIter(faceSet, *this, iter)
|
||||||
{
|
{
|
||||||
set[iter.key()] = true;
|
set[iter.key()] = true;
|
||||||
}
|
}
|
||||||
boolList syncSet(set);
|
syncTools::syncFaceList(mesh, set, orEqOp<bool>());
|
||||||
syncTools::syncFaceList(mesh, syncSet, orEqOp<bool>());
|
|
||||||
|
|
||||||
label nAdded = 0;
|
label nAdded = 0;
|
||||||
|
|
||||||
forAll(set, faceI)
|
forAll(set, faceI)
|
||||||
{
|
{
|
||||||
if (!set[faceI] && syncSet[faceI])
|
if (set[faceI])
|
||||||
{
|
{
|
||||||
if (!insert(faceI))
|
if (insert(faceI))
|
||||||
{
|
{
|
||||||
FatalErrorIn("faceSet::sync(const polyMesh&)")
|
nAdded++;
|
||||||
<< "Problem at face " << faceI
|
|
||||||
<< abort(FatalError);
|
|
||||||
}
|
}
|
||||||
nAdded++;
|
}
|
||||||
|
else if (found(faceI))
|
||||||
|
{
|
||||||
|
FatalErrorIn("faceSet::sync(const polyMesh&)")
|
||||||
|
<< "Problem : syncing removed faces from set."
|
||||||
|
<< abort(FatalError);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user