BUG: fvMeshGeometry: mesh.C() on cyclicAMI

This commit is contained in:
mattijs
2011-11-10 13:09:15 +00:00
parent 52833b1706
commit ccc0698af2

View File

@ -31,6 +31,7 @@ License
#include "slicedSurfaceFields.H"
#include "SubField.H"
#include "cyclicFvPatchFields.H"
#include "cyclicAMIFvPatchFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -158,7 +159,11 @@ void fvMesh::makeC() const
forAll(C.boundaryField(), patchi)
{
if (isA<cyclicFvPatchVectorField>(C.boundaryField()[patchi]))
if
(
isA<cyclicFvPatchVectorField>(C.boundaryField()[patchi])
|| isA<cyclicAMIFvPatchVectorField>(C.boundaryField()[patchi])
)
{
// Note: cyclic is not slice but proper field
C.boundaryField()[patchi] == static_cast<const vectorField&>