From 13ca9281fe13dfd09a4dac86cbd5a92ec22337cc Mon Sep 17 00:00:00 2001
From: andy <andy>
Date: Tue, 15 Nov 2011 13:55:33 +0000
Subject: [PATCH] BUG: Re-instated tmp dereferencing for AMIInterpolation

---
 .../AMIInterpolation/AMIInterpolation/AMIInterpolation.C  | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C b/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C
index cae738707d8..4c6cda063a7 100644
--- a/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C
+++ b/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C
@@ -1950,7 +1950,7 @@ Foam::AMIInterpolation<SourcePatch, TargetPatch>::interpolateToSource
     const BinaryOp& bop
 ) const
 {
-    return interpolateToSource(tFld, bop);
+    return interpolateToSource(tFld(), bop);
 }
 
 
@@ -1987,7 +1987,7 @@ Foam::AMIInterpolation<SourcePatch, TargetPatch>::interpolateToTarget
     const BinaryOp& bop
 ) const
 {
-    return interpolateToTarget(tFld, bop);
+    return interpolateToTarget(tFld(), bop);
 }
 
 
@@ -2011,7 +2011,7 @@ Foam::AMIInterpolation<SourcePatch, TargetPatch>::interpolateToSource
     const tmp<Field<Type> >& tFld
 ) const
 {
-    return interpolateToSource(tFld, sumOp<Type>());
+    return interpolateToSource(tFld(), sumOp<Type>());
 }
 
 
@@ -2035,7 +2035,7 @@ Foam::AMIInterpolation<SourcePatch, TargetPatch>::interpolateToTarget
     const tmp<Field<Type> >& tFld
 ) const
 {
-    return interpolateToTarget(tFld, sumOp<Type>());
+    return interpolateToTarget(tFld(), sumOp<Type>());
 }
 
 
-- 
GitLab