Using isA test for cyclic patch

This commit is contained in:
graham
2009-09-14 10:53:04 +01:00
parent 8137bec81d
commit 41b73e69d0

View File

@ -368,7 +368,7 @@ void Foam::ReferredCellList<ParticleType>::buildReferredCellList
// boundaries. Separate treatment allows the serial version to run // boundaries. Separate treatment allows the serial version to run
// transparently. // transparently.
if (mesh.boundaryMesh()[patchI].type() == "cyclic") if (isA<cyclicPolyPatch>(mesh.boundaryMesh()[patchI]))
{ {
const cyclicPolyPatch& patch = refCast<const cyclicPolyPatch> const cyclicPolyPatch& patch = refCast<const cyclicPolyPatch>
( (