sequentialGAMGProcAgglomeration.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) 2013-2025 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::sequentialGAMGProcAgglomeration
26 
27 Description
28  Sequential processor agglomeration agglomerates 2^mergeLevels sequential
29  groups of processors into the minimum processor index of the group.
30 
31  Note that no account is taken of the processor connectivity so the
32  processors in the agglomerated groups may or may not be connected
33  depending on the decomposition ordering.
34 
35  To directly account for processor connectivity use
36  Foam::pairGAMGProcAgglomeration.
37 
38 Usage
39  Example of GAMG solver settings with sequential processor agglomeration
40  \verbatim
41  p
42  {
43  solver GAMG;
44  smoother GaussSeidel;
45 
46  processorAgglomeration
47  {
48  agglomerator sequential;
49  }
50 
51  tolerance 1e-8;
52  relTol 0;
53  }
54  \endverbatim
55 
56 See also
57  Foam::pairGAMGProcAgglomeration
58 
59 SourceFiles
60  sequentialGAMGProcAgglomeration.C
61 
62 \*---------------------------------------------------------------------------*/
63 
64 #ifndef sequentialGAMGProcAgglomeration_H
65 #define sequentialGAMGProcAgglomeration_H
66 
67 #include "GAMGProcAgglomeration.H"
68 #include "DynamicList.H"
69 
70 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
71 
72 namespace Foam
73 {
74 
75 /*---------------------------------------------------------------------------*\
76  Class sequentialGAMGProcAgglomeration Declaration
77 \*---------------------------------------------------------------------------*/
78 
80 :
82 {
83  // Private Data
84 
85  //- Agglomeration level
86  const label mergeLevels_;
87 
88  DynamicList<label> comms_;
89 
90 
91 public:
92 
93  //- Runtime type information
94  TypeName("sequential");
95 
96 
97  // Constructors
98 
99  //- Construct given agglomerator and controls
101  (
102  GAMGAgglomeration& agglom,
103  const dictionary& dict
104  );
105 
106  //- Disallow default bitwise copy construction
108  (
110  ) = delete;
111 
112 
113  //- Destructor
115 
116 
117  // Member Functions
118 
119  //- Modify agglomeration. Return true if modified
120  virtual bool agglomerate();
121 
122 
123  // Member Operators
124 
125  //- Disallow default bitwise assignment
126  void operator=(const sequentialGAMGProcAgglomeration&) = delete;
127 };
128 
129 
130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131 
132 } // End namespace Foam
133 
134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
135 
136 #endif
137 
138 // ************************************************************************* //
Geometric agglomerated algebraic multigrid agglomeration class.
Processor agglomeration of GAMGAgglomerations.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
Sequential processor agglomeration agglomerates 2^mergeLevels sequential groups of processors into th...
void operator=(const sequentialGAMGProcAgglomeration &)=delete
Disallow default bitwise assignment.
sequentialGAMGProcAgglomeration(GAMGAgglomeration &agglom, const dictionary &dict)
Construct given agglomerator and controls.
virtual bool agglomerate()
Modify agglomeration. Return true if modified.
TypeName("sequential")
Runtime type information.
Namespace for OpenFOAM.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
dictionary dict