From bdc272a2be5cfb26dc390db947fb4111c45690f2 Mon Sep 17 00:00:00 2001 From: Will Bainbridge Date: Tue, 16 Aug 2022 10:03:09 +0100 Subject: [PATCH] mappedPatchBase: Removed unused constructor --- .../mappedPolyPatch/mappedPatchBase.C | 45 ------------------- .../mappedPolyPatch/mappedPatchBase.H | 5 --- 2 files changed, 50 deletions(-) diff --git a/src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBase.C b/src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBase.C index 147464e3db..f7bd85937a 100644 --- a/src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBase.C +++ b/src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBase.C @@ -1189,51 +1189,6 @@ Foam::mappedPatchBase::mappedPatchBase } -Foam::mappedPatchBase::mappedPatchBase -( - const polyPatch& pp, - const sampleMode mode, - const dictionary& dict -) -: - patch_(pp), - sampleRegion_(dict.lookupOrDefault("sampleRegion", "")), - mode_(mode), - samplePatch_(dict.lookupOrDefault("samplePatch", "")), - coupleGroup_(dict), - offsetMode_(UNIFORM), - offset_(Zero), - offsets_(0), - distance_(0.0), - sameRegion_(sampleRegion_ == patch_.boundaryMesh().mesh().name()), - mapPtr_(nullptr), - AMIPtr_(nullptr), - AMIReverse_(dict.lookupOrDefault("flipNormals", false)), - surfPtr_(nullptr), - surfDict_(dict.subOrEmptyDict("surface")) -{ - if (mode != NEARESTPATCHFACE && mode != NEARESTPATCHFACEAMI) - { - FatalIOErrorInFunction(dict) - << "Construct from sampleMode and dictionary only applicable for " - << " collocated patches in modes " - << sampleModeNames_[NEARESTPATCHFACE] << ',' - << sampleModeNames_[NEARESTPATCHFACEAMI] - << exit(FatalIOError); - } - - if (!coupleGroup_.valid()) - { - if (sampleRegion_.empty()) - { - // If no coupleGroup and no sampleRegion assume local region - sampleRegion_ = patch_.boundaryMesh().mesh().name(); - sameRegion_ = true; - } - } -} - - Foam::mappedPatchBase::mappedPatchBase ( const polyPatch& pp, diff --git a/src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBase.H b/src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBase.H index 98b08cabea..914cd38154 100644 --- a/src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBase.H +++ b/src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBase.H @@ -312,11 +312,6 @@ public: //- Construct from dictionary mappedPatchBase(const polyPatch&, const dictionary&); - //- Construct from dictionary and (collocated) sample mode - // (only for nearestPatchFace, nearestPatchFaceAMI) - // Assumes zero offset. - mappedPatchBase(const polyPatch&, const sampleMode, const dictionary&); - //- Construct as copy, resetting patch mappedPatchBase(const polyPatch&, const mappedPatchBase&);