Skip to content
Snippets Groups Projects
Commit 925e5add authored by henry's avatar henry
Browse files
parents ec4e44e4 0e047636
No related merge requests found
...@@ -230,7 +230,30 @@ Foam::extendedCellToFaceStencil::calcDistributeMap ...@@ -230,7 +230,30 @@ Foam::extendedCellToFaceStencil::calcDistributeMap
Foam::extendedCellToFaceStencil::extendedCellToFaceStencil(const polyMesh& mesh) Foam::extendedCellToFaceStencil::extendedCellToFaceStencil(const polyMesh& mesh)
: :
mesh_(mesh) mesh_(mesh)
{} {
// Check for transformation - not supported.
const polyBoundaryMesh& patches = mesh.boundaryMesh();
forAll(patches, patchI)
{
if (isA<coupledPolyPatch>(patches[patchI]))
{
const coupledPolyPatch& cpp =
refCast<const coupledPolyPatch>(patches[patchI]);
if (!cpp.parallel() || cpp.separated())
{
FatalErrorIn
(
"extendedCellToFaceStencil::extendedCellToFaceStencil"
"(const polyMesh&)"
) << "Coupled patches with transformations not supported."
<< endl
<< "Problematic patch " << cpp.name() << exit(FatalError);
}
}
}
}
// ************************************************************************* // // ************************************************************************* //
...@@ -33,7 +33,30 @@ License ...@@ -33,7 +33,30 @@ License
Foam::extendedFaceToCellStencil::extendedFaceToCellStencil(const polyMesh& mesh) Foam::extendedFaceToCellStencil::extendedFaceToCellStencil(const polyMesh& mesh)
: :
mesh_(mesh) mesh_(mesh)
{} {
// Check for transformation - not supported.
const polyBoundaryMesh& patches = mesh.boundaryMesh();
forAll(patches, patchI)
{
if (isA<coupledPolyPatch>(patches[patchI]))
{
const coupledPolyPatch& cpp =
refCast<const coupledPolyPatch>(patches[patchI]);
if (!cpp.parallel() || cpp.separated())
{
FatalErrorIn
(
"extendedFaceToCellStencil::extendedFaceToCellStencil"
"(const polyMesh&)"
) << "Coupled patches with transformations not supported."
<< endl
<< "Problematic patch " << cpp.name() << exit(FatalError);
}
}
}
}
// ************************************************************************* // // ************************************************************************* //
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment