1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 Foam::structuredDecomp
28 Decomposition given using consecutive application of decomposers.
33 \*---------------------------------------------------------------------------*/
35 #ifndef structuredDecomp_H
36 #define structuredDecomp_H
38 #include "decompositionMethod.H"
43 /*---------------------------------------------------------------------------*\
44 Class structuredDecomp Declaration
45 \*---------------------------------------------------------------------------*/
47 class structuredDecomp
49 public decompositionMethod
53 dictionary methodDict_;
55 autoPtr<decompositionMethod> method_;
60 // Private Member Functions
62 //- Disallow default bitwise copy construct and assignment
63 void operator=(const structuredDecomp&);
64 structuredDecomp(const structuredDecomp&);
69 //- Runtime type information
70 TypeName("structured");
75 //- Construct given the decomposition dictionary
76 structuredDecomp(const dictionary& decompositionDict);
80 virtual ~structuredDecomp()
86 //- Is method parallel aware (i.e. does it synchronize domains across
88 virtual bool parallelAware() const;
90 //- Return for every coordinate the wanted processor number. Use the
91 // mesh connectivity (if needed)
92 virtual labelList decompose
95 const pointField& points,
96 const scalarField& pointWeights
99 //- Return for every coordinate the wanted processor number. Explicitly
100 // provided connectivity - does not use mesh_.
101 virtual labelList decompose
103 const labelListList& globalCellCells,
104 const pointField& cc,
105 const scalarField& cWeights
110 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 } // End namespace Foam
114 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 // ************************************************************************* //