Skip to content
Snippets Groups Projects
Commit e45011f5 authored by mattijs's avatar mattijs
Browse files

ENH: PatchTools: moved transforms into mapDistribute

parent e1ac4b30
Branches
Tags
No related merge requests found
......@@ -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<List<point> >& fld
) const
{
const tensor T
(
forward
? vt.R()
: vt.R().T()
);
forAll(fld, i)
{
List<point>& 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()
);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment