From e45011f538dce0b93a1f35596c463fe13c27c48f Mon Sep 17 00:00:00 2001 From: mattijs Date: Mon, 7 Oct 2013 17:35:56 +0100 Subject: [PATCH] ENH: PatchTools: moved transforms into mapDistribute --- .../PatchTools/PatchToolsNormals.C | 39 +------------------ 1 file changed, 1 insertion(+), 38 deletions(-) diff --git a/src/OpenFOAM/meshes/primitiveMesh/PatchTools/PatchToolsNormals.C b/src/OpenFOAM/meshes/primitiveMesh/PatchTools/PatchToolsNormals.C index a5cb7fdbb9..8ac95cd8b1 100644 --- a/src/OpenFOAM/meshes/primitiveMesh/PatchTools/PatchToolsNormals.C +++ b/src/OpenFOAM/meshes/primitiveMesh/PatchTools/PatchToolsNormals.C @@ -28,43 +28,6 @@ License #include "indirectPrimitivePatch.H" #include "globalMeshData.H" - -// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // - -namespace Foam -{ - //- Transformation - class listTransform - { - public: - - void operator() - ( - const vectorTensorTransform& vt, - const bool forward, - List >& fld - ) const - { - const tensor T - ( - forward - ? vt.R() - : vt.R().T() - ); - - forAll(fld, i) - { - List& elems = fld[i]; - forAll(elems, elemI) - { - elems[elemI] = transform(T, elems[elemI]); - } - } - } - }; -} - - // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // template @@ -141,7 +104,7 @@ Foam::PatchTools::pointNormals ( transforms, pointFaceNormals, - listTransform() + mapDistribute::transform() );