From 1f5f4579e5f36b85d76f06a8307f5ab1d2920949 Mon Sep 17 00:00:00 2001 From: andy Date: Fri, 11 May 2012 13:02:07 +0100 Subject: [PATCH] BUG: Use combineOp not binary Op --- .../AMIInterpolation/AMIInterpolation.C | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C b/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C index 0a530993ae..ed40986dbb 100644 --- a/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C +++ b/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C @@ -1900,7 +1900,7 @@ template void Foam::AMIInterpolation::interpolateToTarget ( const UList& fld, - const CombineOp& bop, + const CombineOp& cop, List& result ) const { @@ -1937,7 +1937,7 @@ void Foam::AMIInterpolation::interpolateToTarget forAll(faces, i) { - bop(result[faceI], faceI, work[faces[i]], weights[i]); + cop(result[faceI], faceI, work[faces[i]], weights[i]); } } } @@ -1950,7 +1950,7 @@ void Foam::AMIInterpolation::interpolateToTarget forAll(faces, i) { - bop(result[faceI], faceI, fld[faces[i]], weights[i]); + cop(result[faceI], faceI, fld[faces[i]], weights[i]); } } } @@ -1962,7 +1962,7 @@ template void Foam::AMIInterpolation::interpolateToSource ( const UList& fld, - const CombineOp& bop, + const CombineOp& cop, List& result ) const { @@ -1999,7 +1999,7 @@ void Foam::AMIInterpolation::interpolateToSource forAll(faces, i) { - bop(result[faceI], faceI, work[faces[i]], weights[i]); + cop(result[faceI], faceI, work[faces[i]], weights[i]); } } } @@ -2012,7 +2012,7 @@ void Foam::AMIInterpolation::interpolateToSource forAll(faces, i) { - bop(result[faceI], faceI, fld[faces[i]], weights[i]); + cop(result[faceI], faceI, fld[faces[i]], weights[i]); } } } @@ -2101,7 +2101,7 @@ Foam::AMIInterpolation::interpolateToSource const Field& fld ) const { - return interpolateToSource(fld, sumOp()); + return interpolateToSource(fld, plusEqOp()); } @@ -2113,7 +2113,7 @@ Foam::AMIInterpolation::interpolateToSource const tmp >& tFld ) const { - return interpolateToSource(tFld(), sumOp()); + return interpolateToSource(tFld(), plusEqOp()); } @@ -2125,7 +2125,7 @@ Foam::AMIInterpolation::interpolateToTarget const Field& fld ) const { - return interpolateToTarget(fld, sumOp()); + return interpolateToTarget(fld, plusEqOp()); } @@ -2137,7 +2137,7 @@ Foam::AMIInterpolation::interpolateToTarget const tmp >& tFld ) const { - return interpolateToTarget(tFld(), sumOp()); + return interpolateToTarget(tFld(), plusEqOp()); }