From 59e15370ce77a25f27494a24a07f315fafafd5a3 Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Thu, 29 Sep 2011 10:42:09 +0100 Subject: [PATCH] fixing regionCoupleFvPatchField double templating Conflicts: src/finiteVolume/fields/fvPatchFields/constraint/regionCoupling/regionCouplingFvPatchField.C --- .../regionCoupling/regionCouplingFvPatchField.C | 17 ++++++++++------- .../regionCoupling/regionCouplingFvPatchField.H | 8 ++++---- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/src/finiteVolume/fields/fvPatchFields/constraint/regionCoupling/regionCouplingFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/constraint/regionCoupling/regionCouplingFvPatchField.C index b47ccecd7..8222bd452 100644 --- a/src/finiteVolume/fields/fvPatchFields/constraint/regionCoupling/regionCouplingFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/constraint/regionCoupling/regionCouplingFvPatchField.C @@ -30,6 +30,8 @@ Author #include "regionCouplingFvPatchField.H" #include "symmTransformField.H" #include "magLongDelta.H" +#include "volFields.H" +#include "surfaceFields.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -150,19 +152,19 @@ regionCouplingFvPatchField::regionCouplingFvPatchField // Return a named shadow patch field template -template -const typename GeometricField::PatchFieldType& +template +const typename LookupField::PatchFieldType& regionCouplingFvPatchField::lookupShadowPatchField ( const word& name, - const GeometricField*, - const Type2* + const LookupField*, + const LookupType* ) const { // Lookup neighbour field - const GeometricField& shadowField = + const LookupField& shadowField = regionCouplePatch_.shadowRegion(). - objectRegistry::lookupObject(name); + objectRegistry::lookupObject(name); return shadowField.boundaryField()[regionCouplePatch_.shadowIndex()]; } @@ -183,7 +185,7 @@ regionCouplingFvPatchField::shadowPatchField() const } -// Return neighbour field +// Return neighbour field given internal cell data template tmp > regionCouplingFvPatchField::patchNeighbourField() const { @@ -236,6 +238,7 @@ tmp > regionCouplingFvPatchField::patchNeighbourField } + template void regionCouplingFvPatchField::initEvaluate ( diff --git a/src/finiteVolume/fields/fvPatchFields/constraint/regionCoupling/regionCouplingFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/constraint/regionCoupling/regionCouplingFvPatchField.H index bce85b7c3..864ac748b 100644 --- a/src/finiteVolume/fields/fvPatchFields/constraint/regionCoupling/regionCouplingFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/constraint/regionCoupling/regionCouplingFvPatchField.H @@ -172,13 +172,13 @@ public: } //- Return a named shadow patch field - template - const typename GeometricField::PatchFieldType& + template + const typename LookupField::PatchFieldType& lookupShadowPatchField ( const word& name, - const GeometricField* = NULL, - const Type2* = NULL + const LookupField* = NULL, + const LookupType* = NULL ) const;