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
dfd38ad3
Commit
dfd38ad3
authored
Apr 29, 2010
by
mattijs
Browse files
ENH: Build in check for old cyclics.
parent
1f895992
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricBoundaryField.C
View file @
dfd38ad3
...
...
@@ -26,6 +26,7 @@ License
#include
"emptyPolyPatch.H"
#include
"commSchedule.H"
#include
"globalMeshData.H"
#include
"cyclicPolyPatch.H"
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
...
...
@@ -251,6 +252,29 @@ GeometricBoundaryField
{
if
(
bmesh_
[
patchi
].
type
()
!=
emptyPolyPatch
::
typeName
)
{
if
(
bmesh_
[
patchi
].
type
()
==
cyclicPolyPatch
::
typeName
&&
!
dict
.
found
(
bmesh_
[
patchi
].
name
())
)
{
FatalIOErrorIn
(
"GeometricField<Type, PatchField, GeoMesh>::
\n
"
"GeometricBoundaryField::GeometricBoundaryField
\n
"
"(
\n
"
" const BoundaryMesh&,
\n
"
" const DimensionedField<Type, GeoMesh>&,
\n
"
" const dictionary&
\n
"
")"
,
dict
)
<<
"Cannot find patchField entry for cyclic "
<<
bmesh_
[
patchi
].
name
()
<<
endl
<<
"Is your field uptodate with split cyclics?"
<<
endl
<<
"Run foamUpgradeCyclics to convert mesh and fields"
<<
" to split cyclics."
<<
exit
(
FatalIOError
);
}
set
(
patchi
,
...
...
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