Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
866c75a9
Commit
866c75a9
authored
Jul 20, 2011
by
mattijs
Browse files
ENH: polyMeshInitMesh.C: check on validity
parent
74e71fe1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/meshes/polyMesh/polyMeshInitMesh.C
View file @
866c75a9
...
...
@@ -60,12 +60,26 @@ void Foam::polyMesh::initMesh()
forAll
(
owner_
,
facei
)
{
if
(
owner_
[
facei
]
<
0
)
{
FatalErrorIn
(
"polyMesh::initMesh()"
)
<<
"Illegal cell label "
<<
owner_
[
facei
]
<<
" in neighbour addressing for face "
<<
facei
<<
exit
(
FatalError
);
}
nCells
=
max
(
nCells
,
owner_
[
facei
]);
}
// The neighbour array may or may not be the same length as the owner
forAll
(
neighbour_
,
facei
)
{
if
(
neighbour_
[
facei
]
<
0
)
{
FatalErrorIn
(
"polyMesh::initMesh()"
)
<<
"Illegal cell label "
<<
neighbour_
[
facei
]
<<
" in neighbour addressing for face "
<<
facei
<<
exit
(
FatalError
);
}
nCells
=
max
(
nCells
,
neighbour_
[
facei
]);
}
...
...
@@ -113,6 +127,14 @@ void Foam::polyMesh::initMesh(cellList& c)
forAll
(
cellfaces
,
faceI
)
{
if
(
cellfaces
[
faceI
]
<
0
)
{
FatalErrorIn
(
"polyMesh::initMesh(cellList&)"
)
<<
"Illegal face label "
<<
cellfaces
[
faceI
]
<<
" in cell "
<<
cellI
<<
exit
(
FatalError
);
}
if
(
!
markedFaces
[
cellfaces
[
faceI
]])
{
// First visit: owner
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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