mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
disable extended stencils on coupled patches with transformation since incorrect
This commit is contained in:
@ -230,7 +230,30 @@ Foam::extendedCellToFaceStencil::calcDistributeMap
|
||||
Foam::extendedCellToFaceStencil::extendedCellToFaceStencil(const polyMesh& 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
|
||||
Foam::extendedFaceToCellStencil::extendedFaceToCellStencil(const polyMesh& 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
Reference in New Issue
Block a user