zoltanRenumber.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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.
15 
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
19  for more details.
20 
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/>.
23 
24 Class
25  Foam::zoltanRenumber
26 
27 Description
28  Use Zoltan
29 
30 SourceFiles
31  zoltanRenumber.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef zoltanRenumber_H
36 #define zoltanRenumber_H
37 
38 #include "renumberMethod.H"
39 
40 namespace Foam
41 {
42 
43 /*---------------------------------------------------------------------------*\
44  Class zoltanRenumber Declaration
45 \*---------------------------------------------------------------------------*/
46 
47 class zoltanRenumber
48 :
49  public renumberMethod
50 {
51  // Private Data
52 
53  const dictionary coeffsDict_;
54 
55 
56 public:
57 
58  //- Runtime type information
59  TypeName("zoltan");
60 
61 
62  // Constructors
63 
64  //- Construct given the renumber dictionary
65  zoltanRenumber(const dictionary& renumberDict);
66 
67  //- Disallow default bitwise copy construction
68  zoltanRenumber(const zoltanRenumber&) = delete;
69 
70 
71  //- Destructor
72  virtual ~zoltanRenumber()
73  {}
74 
75 
76  // Member Functions
77 
78  //- Return the order in which cells need to be visited, i.e.
79  // from ordered back to original cell label.
80  // This is only defined for geometric renumberMethods.
81  virtual labelList renumber(const pointField&) const
82  {
84  return labelList(0);
85  }
86 
87  //- Return the order in which cells need to be visited, i.e.
88  // from ordered back to original cell label.
89  // Use the mesh connectivity (if needed)
90  virtual labelList renumber
91  (
92  const polyMesh& mesh,
93  const pointField& cc
94  ) const;
95 
96  //- Return the order in which cells need to be visited, i.e.
97  // from ordered back to original cell label.
98  // The connectivity is equal to mesh.cellCells() except
99  // - the connections are across coupled patches
101  (
102  const labelListList& cellCells,
103  const pointField& cc
104  ) const
105  {
107  return labelList(0);
108  }
109 
110 
111  // Member Operators
112 
113  //- Disallow default bitwise assignment
114  void operator=(const zoltanRenumber&) = delete;
115 };
116 
117 
118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119 
120 } // End namespace Foam
121 
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 
124 #endif
125 
126 // ************************************************************************* //
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:158
virtual labelList renumber(const pointField &) const
Return the order in which cells need to be visited, i.e.
Abstract base class for renumbering.
virtual ~zoltanRenumber()
Destructor.
dynamicFvMesh & mesh
TypeName("zoltan")
Runtime type information.
List< label > labelList
A List of labels.
Definition: labelList.H:56
Renumber using Zoltan.
zoltanRenumber(const dictionary &renumberDict)
Construct given the renumber dictionary.
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:74
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Definition: error.H:366
void operator=(const zoltanRenumber &)=delete
Disallow default bitwise assignment.
Namespace for OpenFOAM.