From ccc0698af26a8109190ad38eeebe9957de1c3399 Mon Sep 17 00:00:00 2001
From: mattijs <mattijs>
Date: Thu, 10 Nov 2011 13:09:15 +0000
Subject: [PATCH] BUG: fvMeshGeometry: mesh.C() on cyclicAMI

---
 src/finiteVolume/fvMesh/fvMeshGeometry.C | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/finiteVolume/fvMesh/fvMeshGeometry.C b/src/finiteVolume/fvMesh/fvMeshGeometry.C
index 25b643f41de..8006caf0a90 100644
--- a/src/finiteVolume/fvMesh/fvMeshGeometry.C
+++ b/src/finiteVolume/fvMesh/fvMeshGeometry.C
@@ -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&>
-- 
GitLab