mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Build in check for old cyclics.
This commit is contained in:
@ -26,6 +26,7 @@ License
|
|||||||
#include "emptyPolyPatch.H"
|
#include "emptyPolyPatch.H"
|
||||||
#include "commSchedule.H"
|
#include "commSchedule.H"
|
||||||
#include "globalMeshData.H"
|
#include "globalMeshData.H"
|
||||||
|
#include "cyclicPolyPatch.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -251,6 +252,29 @@ GeometricBoundaryField
|
|||||||
{
|
{
|
||||||
if (bmesh_[patchi].type() != emptyPolyPatch::typeName)
|
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
|
set
|
||||||
(
|
(
|
||||||
patchi,
|
patchi,
|
||||||
|
|||||||
Reference in New Issue
Block a user