From cb1a012b66b3e0d72cef50197b6cd3d0887c7693 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Fri, 9 Sep 2016 12:20:25 +0100 Subject: [PATCH] structuredRenumber: Corrected to run in parallel Patch contributed by Mattijs Janssens --- .../structuredRenumber/OppositeFaceCellWave.C | 331 ++++++++++++++++++ .../structuredRenumber/OppositeFaceCellWave.H | 143 ++++++++ .../OppositeFaceCellWaveName.C | 36 ++ .../structuredRenumber/structuredRenumber.C | 154 +++++--- .../structuredRenumber/structuredRenumber.H | 35 +- 5 files changed, 651 insertions(+), 48 deletions(-) create mode 100644 src/renumber/renumberMethods/structuredRenumber/OppositeFaceCellWave.C create mode 100644 src/renumber/renumberMethods/structuredRenumber/OppositeFaceCellWave.H create mode 100644 src/renumber/renumberMethods/structuredRenumber/OppositeFaceCellWaveName.C diff --git a/src/renumber/renumberMethods/structuredRenumber/OppositeFaceCellWave.C b/src/renumber/renumberMethods/structuredRenumber/OppositeFaceCellWave.C new file mode 100644 index 0000000000..4e865bd0b1 --- /dev/null +++ b/src/renumber/renumberMethods/structuredRenumber/OppositeFaceCellWave.C @@ -0,0 +1,331 @@ +/*---------------------------------------------------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | + \\ / A nd | Copyright (C) 2016 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 "OppositeFaceCellWave.H" +#include "polyMesh.H" + +// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // + +template +void Foam::OppositeFaceCellWave::opposingFaceLabels +( + const label celli, + const label masterFaceLabel, + DynamicList