diff --git a/src/sampling/Make/files b/src/sampling/Make/files index 309cf09d7a..6d5b7ad19e 100644 --- a/src/sampling/Make/files +++ b/src/sampling/Make/files @@ -60,10 +60,14 @@ $(meshToMesh)/calculateMeshToMeshAddressing.C $(meshToMesh)/calculateMeshToMeshWeights.C meshToMeshNew = meshToMeshInterpolation/meshToMeshNew -$(meshToMeshNew)/calcDirect.C -$(meshToMeshNew)/calcMapNearest.C -$(meshToMeshNew)/calcCellVolumeWeight.C $(meshToMeshNew)/meshToMeshNew.C $(meshToMeshNew)/meshToMeshNewParallelOps.C +meshToMeshNewMethods = meshToMeshInterpolation/meshToMeshNew/calcMethod +$(meshToMeshNewMethods)/meshToMeshMethod/meshToMeshMethod.C +$(meshToMeshNewMethods)/meshToMeshMethod/meshToMeshMethodNew.C +$(meshToMeshNewMethods)/cellVolumeWeight/cellVolumeWeightMethod.C +$(meshToMeshNewMethods)/direct/directMethod.C +$(meshToMeshNewMethods)/mapNearest/mapNearestMethod.C + LIB = $(FOAM_LIBBIN)/libsampling diff --git a/src/sampling/meshToMeshInterpolation/meshToMeshNew/calcDirect.C b/src/sampling/meshToMeshInterpolation/meshToMeshNew/calcDirect.C deleted file mode 100644 index 8e6a17511e..0000000000 --- a/src/sampling/meshToMeshInterpolation/meshToMeshNew/calcDirect.C +++ /dev/null @@ -1,159 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | Copyright (C) 2012-2013 OpenFOAM Foundation - \\/ M anipulation | -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -\*---------------------------------------------------------------------------*/ - -#include "meshToMeshNew.H" - -// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // - -void Foam::meshToMeshNew::calcDirect -( - const polyMesh& src, - const polyMesh& tgt, - const label srcSeedI, - const label tgtSeedI -) -{ - // store a list of src cells already mapped - boolList srcSeedFlag(src.nCells(), true); - labelList srcTgtSeed(src.nCells(), -1); - - List > srcToTgt(src.nCells()); - List > tgtToSrc(tgt.nCells()); - - DynamicList