eagerGAMGProcAgglomeration.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) 2013 OpenFOAM Foundation
9  Copyright (C) 2023 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::eagerGAMGProcAgglomeration
29 
30 Description
31  'Eager' processor agglomeration of GAMGAgglomerations: at every
32  level agglomerates 'mergeLevels' number of processors onto the
33  minimum processor number.
34 
35 SourceFiles
36  eagerGAMGProcAgglomeration.C
37 
38 \*---------------------------------------------------------------------------*/
39 
40 #ifndef Foam_eagerGAMGProcAgglomeration_H
41 #define Foam_eagerGAMGProcAgglomeration_H
42 
43 #include "GAMGProcAgglomeration.H"
44 
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 
47 namespace Foam
48 {
49 
50 /*---------------------------------------------------------------------------*\
51  Class eagerGAMGProcAgglomeration Declaration
52 \*---------------------------------------------------------------------------*/
53 
55 :
57 {
58  // Private Data
59 
60  //- Agglpmeration level
61  const label mergeLevels_;
62 
63 
64 public:
65 
66  //- Runtime type information
67  TypeName("eager");
68 
69  //- No copy construct
71 
72  //- No copy assignment
73  void operator=(const eagerGAMGProcAgglomeration&) = delete;
74 
75 
76  // Constructors
77 
78  //- Construct given agglomerator and controls
80  (
81  GAMGAgglomeration& agglom,
82  const dictionary& controlDict
83  );
84 
85 
86  //- Destructor
88 
89 
90  // Member Functions
91 
92  //- Modify agglomeration. Return true if modified
93  virtual bool agglomerate();
94 };
95 
96 
97 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
98 
99 } // End namespace Foam
100 
101 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
102 
103 #endif
104 
105 // ************************************************************************* //
TypeName("eager")
Runtime type information.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
virtual bool agglomerate()
Modify agglomeration. Return true if modified.
runTime controlDict().readEntry("adjustTimeStep"
The central control dictionary, the contents of which are either taken directly from the FOAM_CONTROL...
Definition: debug.C:142
eagerGAMGProcAgglomeration(const eagerGAMGProcAgglomeration &)=delete
No copy construct.
&#39;Eager&#39; processor agglomeration of GAMGAgglomerations: at every level agglomerates &#39;mergeLevels&#39; numb...
Processor agglomeration of GAMGAgglomerations.
Geometric agglomerated algebraic multigrid agglomeration class.
void operator=(const eagerGAMGProcAgglomeration &)=delete
No copy assignment.
Namespace for OpenFOAM.