From 8400a1c19f6093527883d6a095ee3b37287f4de5 Mon Sep 17 00:00:00 2001 From: Andrew Heather <a.heather@opencfd.co.uk> Date: Tue, 8 Dec 2015 22:56:15 +0000 Subject: [PATCH] ENH: Updated notImplemented(...)->NotImplemented messages --- .../surfacePatch/searchableSurfaceModifier/autoPatch.H | 2 +- .../surface/surfacePatch/searchableSurfaceModifier/cut.H | 2 +- .../searchableSurfaceModifier.H | 2 +- .../mapPolyMesh/mapDistribute/mapDistributeBase.H | 5 +---- .../patchTransformed/patchTransformedInterpolation.C | 9 +-------- .../directionalPressureGradientExplicitSourceIO.C | 8 +------- .../displacementMotionSolverMeshMover.H | 6 +----- src/mesh/blockMesh/curvedEdges/bezier.C | 2 +- src/meshTools/searchableSurface/searchableCone.H | 8 ++------ src/meshTools/searchableSurface/searchableRotatedBox.C | 6 +----- src/meshTools/searchableSurface/searchableRotatedBox.H | 5 +---- 11 files changed, 12 insertions(+), 43 deletions(-) diff --git a/applications/utilities/surface/surfacePatch/searchableSurfaceModifier/autoPatch.H b/applications/utilities/surface/surfacePatch/searchableSurfaceModifier/autoPatch.H index 4a7e0459b34..92c376611f3 100644 --- a/applications/utilities/surface/surfacePatch/searchableSurfaceModifier/autoPatch.H +++ b/applications/utilities/surface/surfacePatch/searchableSurfaceModifier/autoPatch.H @@ -75,7 +75,7 @@ public: //- Clone autoPtr<searchableSurfaceModifier> clone() const { - notImplemented("autoPtr<searchableSurfaceModifier> clone() const"); + NotImplemented; return autoPtr<searchableSurfaceModifier>(NULL); } diff --git a/applications/utilities/surface/surfacePatch/searchableSurfaceModifier/cut.H b/applications/utilities/surface/surfacePatch/searchableSurfaceModifier/cut.H index 4081b753b35..fdc7ed1bd7a 100644 --- a/applications/utilities/surface/surfacePatch/searchableSurfaceModifier/cut.H +++ b/applications/utilities/surface/surfacePatch/searchableSurfaceModifier/cut.H @@ -99,7 +99,7 @@ public: //- Clone autoPtr<searchableSurfaceModifier> clone() const { - notImplemented("autoPtr<searchableSurfaceModifier> clone() const"); + NotImplemented; return autoPtr<searchableSurfaceModifier>(NULL); } diff --git a/applications/utilities/surface/surfacePatch/searchableSurfaceModifier/searchableSurfaceModifier.H b/applications/utilities/surface/surfacePatch/searchableSurfaceModifier/searchableSurfaceModifier.H index 8955dea7416..c53eab8ac0f 100644 --- a/applications/utilities/surface/surfacePatch/searchableSurfaceModifier/searchableSurfaceModifier.H +++ b/applications/utilities/surface/surfacePatch/searchableSurfaceModifier/searchableSurfaceModifier.H @@ -95,7 +95,7 @@ public: //- Clone autoPtr<searchableSurfaceModifier> clone() const { - notImplemented("autoPtr<searchableSurfaceModifier> clone() const"); + NotImplemented; return autoPtr<searchableSurfaceModifier>(NULL); } diff --git a/src/OpenFOAM/meshes/polyMesh/mapPolyMesh/mapDistribute/mapDistributeBase.H b/src/OpenFOAM/meshes/polyMesh/mapPolyMesh/mapDistribute/mapDistributeBase.H index 9f88e055349..80be2a8b9e4 100644 --- a/src/OpenFOAM/meshes/polyMesh/mapPolyMesh/mapDistribute/mapDistributeBase.H +++ b/src/OpenFOAM/meshes/polyMesh/mapPolyMesh/mapDistribute/mapDistributeBase.H @@ -447,10 +447,7 @@ public: //- Correct for topo change. void updateMesh(const mapPolyMesh&) { - notImplemented - ( - "mapDistributeBase::updateMesh(const mapPolyMesh&)" - ); + NotImplemented; } // Member Operators diff --git a/src/fvMotionSolver/motionInterpolation/patchTransformed/patchTransformedInterpolation.C b/src/fvMotionSolver/motionInterpolation/patchTransformed/patchTransformedInterpolation.C index 60aae0ec6dc..22c9d28c32e 100644 --- a/src/fvMotionSolver/motionInterpolation/patchTransformed/patchTransformedInterpolation.C +++ b/src/fvMotionSolver/motionInterpolation/patchTransformed/patchTransformedInterpolation.C @@ -102,14 +102,7 @@ void Foam::patchTransformedInterpolation::interpolate pointScalarField& ) const { - notImplemented - ( - "void Foam::patchTransformedInterpolation::interpolate" - "(" - "const volScalarField&" - "pointScalarField&" - ")" - ); + NotImplemented; } diff --git a/src/fvOptions/sources/derived/directionalPressureGradientExplicitSource/directionalPressureGradientExplicitSourceIO.C b/src/fvOptions/sources/derived/directionalPressureGradientExplicitSource/directionalPressureGradientExplicitSourceIO.C index f89a05ea062..171b2dce209 100644 --- a/src/fvOptions/sources/derived/directionalPressureGradientExplicitSource/directionalPressureGradientExplicitSourceIO.C +++ b/src/fvOptions/sources/derived/directionalPressureGradientExplicitSource/directionalPressureGradientExplicitSourceIO.C @@ -32,13 +32,7 @@ void Foam::fv::directionalPressureGradientExplicitSource::writeData Ostream& os ) const { - notImplemented - ( - "void Foam::fv::directionalPressureGradientExplicitSource::writeData" - "(" - "Ostream&" - ") const" - ); + NotImplemented; } diff --git a/src/mesh/autoMesh/autoHexMesh/externalDisplacementMeshMover/displacementMotionSolverMeshMover.H b/src/mesh/autoMesh/autoHexMesh/externalDisplacementMeshMover/displacementMotionSolverMeshMover.H index dd30d29c018..e7449d16cda 100644 --- a/src/mesh/autoMesh/autoHexMesh/externalDisplacementMeshMover/displacementMotionSolverMeshMover.H +++ b/src/mesh/autoMesh/autoHexMesh/externalDisplacementMeshMover/displacementMotionSolverMeshMover.H @@ -138,11 +138,7 @@ public: //- Update local data for topology changes virtual void updateMesh(const mapPolyMesh&) { - notImplemented - ( - "displacementMotionSolverMeshMover::updateMesh" - "(const mapPolyMesh&)" - ); + NotImplemented; } }; diff --git a/src/mesh/blockMesh/curvedEdges/bezier.C b/src/mesh/blockMesh/curvedEdges/bezier.C index 1d590457b9e..28363be4613 100644 --- a/src/mesh/blockMesh/curvedEdges/bezier.C +++ b/src/mesh/blockMesh/curvedEdges/bezier.C @@ -89,7 +89,7 @@ Foam::point Foam::bezier::position(const scalar lambda) const Foam::scalar Foam::bezier::length() const { - notImplemented("bezier::length() const"); + NotImplemented; return 1.0; } diff --git a/src/meshTools/searchableSurface/searchableCone.H b/src/meshTools/searchableSurface/searchableCone.H index 3b4d7c3d1f8..b3f2dbd5354 100644 --- a/src/meshTools/searchableSurface/searchableCone.H +++ b/src/meshTools/searchableSurface/searchableCone.H @@ -209,11 +209,7 @@ public: //- Does any part of the surface overlap the supplied bound box? virtual bool overlaps(const boundBox& bb) const { - notImplemented - ( - "searchableCone::overlaps(const boundBox&) const" - ); - + NotImplemented; return false; } @@ -279,7 +275,7 @@ public: virtual bool writeData(Ostream&) const { - notImplemented("searchableCone::writeData(Ostream&) const"); + NotImplemented; return false; } }; diff --git a/src/meshTools/searchableSurface/searchableRotatedBox.C b/src/meshTools/searchableSurface/searchableRotatedBox.C index 3e9660ca802..5fc3c79f58d 100644 --- a/src/meshTools/searchableSurface/searchableRotatedBox.C +++ b/src/meshTools/searchableSurface/searchableRotatedBox.C @@ -207,11 +207,7 @@ Foam::pointIndexHit Foam::searchableRotatedBox::findNearest point& linePoint ) const { - notImplemented - ( - "searchableRotatedBox::findNearest" - "(const linePointRef&, treeBoundBox&, point&)" - ); + NotImplemented; return pointIndexHit(); } diff --git a/src/meshTools/searchableSurface/searchableRotatedBox.H b/src/meshTools/searchableSurface/searchableRotatedBox.H index 5c5c9206ad8..0b7f206e65b 100644 --- a/src/meshTools/searchableSurface/searchableRotatedBox.H +++ b/src/meshTools/searchableSurface/searchableRotatedBox.H @@ -245,10 +245,7 @@ public: bool writeData(Ostream&) const { - notImplemented - ( - "searchableRotatedBox::writeData(Ostream&) const" - ); + NotImplemented; return false; } }; -- GitLab