Skip to content
GitLab
Menu
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
b903ed35
Commit
b903ed35
authored
May 17, 2010
by
mattijs
Browse files
ENH: cyclicPolyPatch : have checking on dictionary construction
parent
e1e40986
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/cyclic/cyclicPolyPatch.C
View file @
b903ed35
...
...
@@ -467,7 +467,7 @@ Foam::cyclicPolyPatch::cyclicPolyPatch
)
:
coupledPolyPatch
(
name
,
dict
,
index
,
bm
),
neighbPatchName_
(
dict
.
lookup
(
"neighbourPatch"
)),
neighbPatchName_
(
dict
.
lookup
OrDefault
(
"neighbourPatch"
,
word
::
null
)),
neighbPatchID_
(
-
1
),
transform_
(
UNKNOWN
),
rotationAxis_
(
vector
::
zero
),
...
...
@@ -476,12 +476,30 @@ Foam::cyclicPolyPatch::cyclicPolyPatch
coupledPointsPtr_
(
NULL
),
coupledEdgesPtr_
(
NULL
)
{
if
(
neighbPatchName_
==
word
::
null
)
{
FatalIOErrorIn
(
"cyclicPolyPatch::cyclicPolyPatch
\n
"
"(
\n
"
" const word& name,
\n
"
" const dictionary& dict,
\n
"
" const label index,
\n
"
" const polyBoundaryMesh& bm
\n
"
")"
,
dict
)
<<
"No
\"
neighbourPatch
\"
provided."
<<
endl
<<
"Is your mesh uptodate with split cyclics?"
<<
endl
<<
"Run foamUpgradeCyclics to convert mesh and fields"
<<
" to split cyclics."
<<
exit
(
FatalIOError
);
}
if
(
neighbPatchName_
==
name
)
{
FatalErrorIn
(
"cyclicPolyPatch::cyclicPolyPatch(..)"
)
Fatal
IO
ErrorIn
(
"cyclicPolyPatch::cyclicPolyPatch(..)"
,
dict
)
<<
"Neighbour patch name "
<<
neighbPatchName_
<<
" cannot be the same as this patch "
<<
name
<<
exit
(
FatalError
);
<<
exit
(
Fatal
IO
Error
);
}
if
(
dict
.
found
(
"transform"
))
...
...
Write
Preview
Supports
Markdown
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