diff --git a/applications/utilities/mesh/manipulation/createPatch/createPatch.C b/applications/utilities/mesh/manipulation/createPatch/createPatch.C index 7f80d01e5d..0e1631e776 100644 --- a/applications/utilities/mesh/manipulation/createPatch/createPatch.C +++ b/applications/utilities/mesh/manipulation/createPatch/createPatch.C @@ -55,23 +55,6 @@ namespace Foam defineTemplateTypeNameAndDebug(IOPtrList, 0); } -// Combine operator to synchronise points. We choose point nearest to origin so -// we can use e.g. great,great,great as null value. -class nearestEqOp -{ - -public: - - void operator()(vector& x, const vector& y) const - { - if (magSqr(y) < magSqr(x)) - { - x = y; - } - } -}; - - void changePatchID ( const polyMesh& mesh, @@ -854,7 +837,7 @@ int main(int argc, char *argv[]) ( mesh, newPoints, - nearestEqOp(), + minMagSqrEqOp(), point(GREAT, GREAT, GREAT) );