From 62637d8471fdbea865c858f5794c5480a5831e33 Mon Sep 17 00:00:00 2001 From: mattijs Date: Wed, 17 Feb 2010 14:01:44 +0000 Subject: [PATCH] ENH: initial overhaul of volPointInterpolation. - removed globalPointPatch* - removed pointPatchInterpolate* since all is now inside volPointInterpolation. --- .../decomposePar/decomposePar.C | 2 +- .../decomposePar/domainDecomposition.C | 10 - .../decomposePar/domainDecomposition.H | 3 - .../decomposePar/domainDecompositionMesh.C | 73 --- .../pointFieldDecomposerDecomposeFields.C | 20 +- .../foamToVTK/lagrangianWriter.H | 1 - etc/controlDict | 1 - src/OpenFOAM/Make/files | 4 + .../basic/coupled/coupledPointPatchField.H | 12 +- .../constraint/cyclic/cyclicPointPatchField.C | 8 +- .../constraint/cyclic/cyclicPointPatchField.H | 6 +- .../processor/processorPointPatchField.C | 36 +- .../processor/processorPointPatchField.H | 14 +- .../derived/global/globalPointPatchField.C | 169 ------ .../derived/global/globalPointPatchField.H | 166 ------ .../derived/global/globalPointPatchFields.C | 44 -- .../derived/global/globalPointPatchFields.H | 51 -- .../pointPatchField/pointPatchField.C | 64 +- .../pointPatchField/pointPatchField.H | 19 + .../lduAddressing/lduInterface/lduInterface.H | 1 + .../lduInterfaceField/lduInterfaceField.H | 1 + .../pointBoundaryMesh/pointBoundaryMesh.C | 27 +- .../pointBoundaryMesh/pointBoundaryMesh.H | 4 - src/OpenFOAM/meshes/pointMesh/pointMesh.C | 27 +- src/OpenFOAM/meshes/pointMesh/pointMesh.H | 6 +- .../basic/generic/genericPointPatch.H | 3 +- .../constraint/cyclic/cyclicPointPatch.C | 110 +--- .../constraint/cyclic/cyclicPointPatch.H | 9 +- .../processor/processorPointPatch.C | 322 ++-------- .../processor/processorPointPatch.H | 18 +- .../derived/coupled/coupledFacePointPatch.C | 19 - .../derived/coupled/coupledFacePointPatch.H | 26 +- .../derived/global/globalPointPatch.C | 58 -- .../derived/global/globalPointPatch.H | 209 ------- .../facePointPatch/facePointPatch.C | 60 +- .../facePointPatch/facePointPatch.H | 25 +- src/OpenFOAM/meshes/polyMesh/polyMesh.C | 14 +- src/OpenFOAM/primitives/bools/Switch/Switch.H | 11 + .../motionSmoother/motionSmootherTemplates.C | 1 - src/finiteVolume/Make/files | 2 +- .../pointPatchInterpolate.C | 208 ------- .../pointPatchInterpolation.C | 337 ----------- .../pointPatchInterpolation.H | 169 ------ .../volPointInterpolate.C | 243 ++++++-- .../volPointInterpolation.C | 556 ++++++++++++++++-- .../volPointInterpolation.H | 89 ++- .../meshRefinement/meshRefinement.C | 7 +- 47 files changed, 1078 insertions(+), 2187 deletions(-) delete mode 100644 src/OpenFOAM/fields/pointPatchFields/derived/global/globalPointPatchField.C delete mode 100644 src/OpenFOAM/fields/pointPatchFields/derived/global/globalPointPatchField.H delete mode 100644 src/OpenFOAM/fields/pointPatchFields/derived/global/globalPointPatchFields.C delete mode 100644 src/OpenFOAM/fields/pointPatchFields/derived/global/globalPointPatchFields.H delete mode 100644 src/OpenFOAM/meshes/pointMesh/pointPatches/derived/global/globalPointPatch.C delete mode 100644 src/OpenFOAM/meshes/pointMesh/pointPatches/derived/global/globalPointPatch.H delete mode 100644 src/finiteVolume/interpolation/volPointInterpolation/pointPatchInterpolation/pointPatchInterpolate.C delete mode 100644 src/finiteVolume/interpolation/volPointInterpolation/pointPatchInterpolation/pointPatchInterpolation.C delete mode 100644 src/finiteVolume/interpolation/volPointInterpolation/pointPatchInterpolation/pointPatchInterpolation.H diff --git a/applications/utilities/parallelProcessing/decomposePar/decomposePar.C b/applications/utilities/parallelProcessing/decomposePar/decomposePar.C index ea8ffe9469..ac1d5a72fb 100644 --- a/applications/utilities/parallelProcessing/decomposePar/decomposePar.C +++ b/applications/utilities/parallelProcessing/decomposePar/decomposePar.C @@ -666,7 +666,7 @@ int main(int argc, char *argv[]) ) ); - pointMesh procPMesh(procMesh, true); + pointMesh procPMesh(procMesh); pointFieldDecomposer fieldDecomposer ( diff --git a/applications/utilities/parallelProcessing/decomposePar/domainDecomposition.C b/applications/utilities/parallelProcessing/decomposePar/domainDecomposition.C index 1fc3560763..eb9d5b02b9 100644 --- a/applications/utilities/parallelProcessing/decomposePar/domainDecomposition.C +++ b/applications/utilities/parallelProcessing/decomposePar/domainDecomposition.C @@ -109,7 +109,6 @@ Foam::domainDecomposition::domainDecomposition(const IOobject& io) procNeighbourProcessors_(nProcs_), procProcessorPatchSize_(nProcs_), procProcessorPatchStartIndex_(nProcs_), - globallySharedPoints_(0), cyclicParallel_(false) { if (decompositionDict_.found("distributed")) @@ -132,15 +131,6 @@ bool Foam::domainDecomposition::writeDecomposition() { Info<< "\nConstructing processor meshes" << endl; - // Make a lookup map for globally shared points - Map