From 03cf8f707531fb9f491976baf67104cb7b813bd0 Mon Sep 17 00:00:00 2001
From: andy <andy>
Date: Fri, 26 Aug 2011 13:32:12 +0100
Subject: [PATCH] BUG: AMI - corrected colocated separation vector

---
 .../patches/cyclicAMIPolyPatch/cyclicAMIPolyPatch.C        | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/AMIInterpolation/patches/cyclicAMIPolyPatch/cyclicAMIPolyPatch.C b/src/AMIInterpolation/patches/cyclicAMIPolyPatch/cyclicAMIPolyPatch.C
index d3dd917a38f..8c36c919079 100644
--- a/src/AMIInterpolation/patches/cyclicAMIPolyPatch/cyclicAMIPolyPatch.C
+++ b/src/AMIInterpolation/patches/cyclicAMIPolyPatch/cyclicAMIPolyPatch.C
@@ -176,7 +176,6 @@ void Foam::cyclicAMIPolyPatch::calcTransforms
         }
         case TRANSLATIONAL:
         {
-            // Transform 0 points
             if (debug)
             {
                 Pout<< "cyclicAMIPolyPatch::calcTransforms :"
@@ -204,11 +203,7 @@ void Foam::cyclicAMIPolyPatch::calcTransforms
 
             const_cast<tensorField&>(forwardT()).clear();
             const_cast<tensorField&>(reverseT()).clear();
-            const_cast<vectorField&>(separation()) = vectorField
-            (
-                1,
-                vector::zero
-            );
+            const_cast<vectorField&>(separation()).setSize(0);
             const_cast<boolList&>(collocated()) = boolList(1, true);
 
             break;
-- 
GitLab