zoltanRenumber.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2011-2015 OpenFOAM Foundation
9  Copyright (C) 2022-2024 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 Class
28  Foam::zoltanRenumber
29 
30 Description
31  Use Zoltan
32 
33 SourceFiles
34  zoltanRenumber.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef Foam_zoltanRenumber_H
39 #define Foam_zoltanRenumber_H
40 
41 #include "renumberMethod.H"
42 
43 namespace Foam
44 {
45 
46 /*---------------------------------------------------------------------------*\
47  Class zoltanRenumber Declaration
48 \*---------------------------------------------------------------------------*/
49 
50 class zoltanRenumber
51 :
52  public renumberMethod
53 {
54  // Private Data
55 
56  const dictionary& coeffsDict_;
57 
58 
59  // Private Member Functions
60 
61  //- No copy construct
62  zoltanRenumber(const zoltanRenumber&) = delete;
63 
64  //- No copy assignment
65  void operator=(const zoltanRenumber&) = delete;
66 
67 
68 public:
69 
70  //- Runtime type information
71  TypeName("zoltan");
72 
73 
74  // Constructors
75 
76  //- Construct given the renumber dictionary
77  explicit zoltanRenumber(const dictionary& dict);
78 
79 
80  //- Destructor
81  virtual ~zoltanRenumber() = default;
82 
83 
84  // Member Functions
85 
86  //- Renumbering method requires a polyMesh for its topology
87  virtual bool needs_mesh() const { return true; }
88 
89 
90  // With mesh topology
91 
92  //- Return the cell visit order (from ordered back to original cell id)
93  //- uses the mesh for connectivity and global exchanges
95  (
96  const polyMesh& mesh
97  ) const;
98 
99 
100  // With explicit topology - Not implemented!
101 
102  //- Return the cell visit order (from ordered back to original cell id).
103  //- Not implemented!
104  virtual labelList renumber
105  (
106  const CompactListList<label>& cellCells
107  ) const
108  {
110  return labelList();
111  }
112 
113  //- Return the cell visit order (from ordered back to original cell id).
114  //- Not implemented!
115  virtual labelList renumber
116  (
117  const labelListList& cellCells
118  ) const
119  {
121  return labelList();
122  }
123 };
124 
125 
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 
128 } // End namespace Foam
130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131 
132 #endif
133 
134 // ************************************************************************* //
dictionary dict
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
Abstract base class for renumbering.
dynamicFvMesh & mesh
virtual bool needs_mesh() const
Renumbering method requires a polyMesh for its topology.
TypeName("zoltan")
Runtime type information.
A packed storage of objects of type <T> using an offset table for access.
virtual ~zoltanRenumber()=default
Destructor.
virtual labelList renumber(const polyMesh &mesh) const
Return the cell visit order (from ordered back to original cell id) uses the mesh for connectivity an...
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:75
List< label > labelList
A List of labels.
Definition: List.H:62
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Definition: error.H:696
Namespace for OpenFOAM.