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-------------------------------------------------------------------------------
10License
11 This file is part of OpenFOAM.
12
13 OpenFOAM is free software: you can redistribute it and/or modify it
14 under the terms of the GNU General Public License as published by
15 the Free Software Foundation, either version 3 of the License, or
16 (at your option) any later version.
17
18 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25
26Class
27 Foam::eagerGAMGProcAgglomeration
28
29Description
30 'Eager' processor agglomeration of GAMGAgglomerations: at every
31 level agglomerates 'mergeLevels' number of processors onto the
32 minimum processor number.
33
34SourceFiles
35 eagerGAMGProcAgglomeration.C
36
37\*---------------------------------------------------------------------------*/
38
39#ifndef eagerGAMGProcAgglomeration_H
40#define eagerGAMGProcAgglomeration_H
41
43#include "DynamicList.H"
44
45// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46
47namespace Foam
48{
49
50class GAMGAgglomeration;
51
52/*---------------------------------------------------------------------------*\
53 Class eagerGAMGProcAgglomeration Declaration
54\*---------------------------------------------------------------------------*/
57:
59{
60 // Private data
61
62 //- Agglpmeration level
63 const label mergeLevels_;
64
65 DynamicList<label> comms_;
66
67 // Private Member Functions
68
69 //- No copy construct
71 (
73 ) = delete;
74
75 //- No copy assignment
76 void operator=(const eagerGAMGProcAgglomeration&) = delete;
77
78
79public:
80
81 //- Runtime type information
82 TypeName("eager");
83
84
85 // Constructors
86
87 //- Construct given agglomerator and controls
89 (
90 GAMGAgglomeration& agglom,
92 );
93
94
95 //- Destructor
97
98
99 // Member Functions
100
101 //- Modify agglomeration. Return true if modified
102 virtual bool agglomerate();
103
104};
105
106
107// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
108
109} // End namespace Foam
110
111// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112
113#endif
114
115// ************************************************************************* //
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
Definition: DynamicList.H:72
Geometric agglomerated algebraic multigrid agglomeration class.
Processor agglomeration of GAMGAgglomerations.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
'Eager' processor agglomeration of GAMGAgglomerations: at every level agglomerates 'mergeLevels' numb...
TypeName("eager")
Runtime type information.
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:73