Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
6c6b3ad1
Commit
6c6b3ad1
authored
Apr 16, 2010
by
mattijs
Browse files
BUG: missing initialisation of boolList
parent
0cb9f709
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/meshTools/sets/topoSets/faceSet.C
View file @
6c6b3ad1
...
...
@@ -113,27 +113,30 @@ faceSet::~faceSet()
void
faceSet
::
sync
(
const
polyMesh
&
mesh
)
{
boolList
set
(
mesh
.
nFaces
());
boolList
set
(
mesh
.
nFaces
(),
false
);
forAllConstIter
(
faceSet
,
*
this
,
iter
)
{
set
[
iter
.
key
()]
=
true
;
}
boolList
syncSet
(
set
);
syncTools
::
syncFaceList
(
mesh
,
syncSet
,
orEqOp
<
bool
>
());
syncTools
::
syncFaceList
(
mesh
,
set
,
orEqOp
<
bool
>
());
label
nAdded
=
0
;
forAll
(
set
,
faceI
)
{
if
(
!
set
[
faceI
]
&&
syncS
et
[
faceI
])
if
(
s
et
[
faceI
])
{
if
(
!
insert
(
faceI
))
if
(
insert
(
faceI
))
{
FatalErrorIn
(
"faceSet::sync(const polyMesh&)"
)
<<
"Problem at face "
<<
faceI
<<
abort
(
FatalError
);
nAdded
++
;
}
nAdded
++
;
}
else
if
(
found
(
faceI
))
{
FatalErrorIn
(
"faceSet::sync(const polyMesh&)"
)
<<
"Problem : syncing removed faces from set."
<<
abort
(
FatalError
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment