Loading...
Searching...
No Matches
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-------------------------------------------------------------------------------
11License
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
27Class
28 Foam::eagerGAMGProcAgglomeration
29
30Description
31 'Eager' processor agglomeration of GAMGAgglomerations: at every
32 level agglomerates 'mergeLevels' number of processors onto the
33 minimum processor number.
34
35SourceFiles
36 eagerGAMGProcAgglomeration.C
37
38\*---------------------------------------------------------------------------*/
39
40#ifndef Foam_eagerGAMGProcAgglomeration_H
41#define Foam_eagerGAMGProcAgglomeration_H
42
44
45// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46
47namespace Foam
48{
50/*---------------------------------------------------------------------------*\
51 Class eagerGAMGProcAgglomeration Declaration
52\*---------------------------------------------------------------------------*/
53
55:
57{
58 // Private Data
59
60 //- Agglpmeration level
61 const label mergeLevels_;
62
63
64public:
65
66 //- Runtime type information
67 TypeName("eager");
68
69 //- No copy construct
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,
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// ************************************************************************* //
Geometric agglomerated algebraic multigrid agglomeration class.
GAMGProcAgglomeration(const GAMGProcAgglomeration &)=delete
No copy construct.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
eagerGAMGProcAgglomeration(const eagerGAMGProcAgglomeration &)=delete
No copy construct.
TypeName("eager")
Runtime type information.
void operator=(const eagerGAMGProcAgglomeration &)=delete
No copy assignment.
virtual bool agglomerate()
Modify agglomeration. Return true if modified.
runTime controlDict().readEntry("adjustTimeStep"
Namespace for OpenFOAM.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition typeInfo.H:68