Debian Codegraph @

packages/muelu/research/tawiesn/crada/driver_fullAMG.xml

raw
1 <ParameterList name="MueLu">
2
3 <!-- Configuration of the Xpetra operator (fine level) -->
4 <ParameterList name="Matrix">
5 <Parameter name="number of equations" type="int" value="3"/>
6 </ParameterList>
7
8 <!-- Factory collection -->
9 <ParameterList name="Factories">
10
11 <!-- sub block factories -->
12 <!-- BLOCK 1 (for submatrix A_{00}) -->
13 <ParameterList name="mySubBlockAFactory1">
14 <Parameter name="factory" type="string" value="SubBlockAFactory"/>
15 <Parameter name="block row" type="int" value="0"/>
16 <Parameter name="block col" type="int" value="0"/>
17 <Parameter name="Range map: Striding info" type="string" value="{ 3 }"/>
18 <Parameter name="Domain map: Striding info" type="string" value="{ 3 }"/>
19 </ParameterList>
20
21 <ParameterList name="myAggFact1">
22 <Parameter name="factory" type="string" value="UncoupledAggregationFactory"/>
23 <Parameter name="aggregation: min agg size" type="int" value="6"/>
24 <Parameter name="aggregation: max agg size" type="int" value="12"/>
25 <Parameter name="aggregation: enable phase 2b" type="bool" value="true"/>
26 </ParameterList>
27
28 <!-- tell the tentative prolongator that we have 2 DOFs per node on the coarse levels -->
29 <ParameterList name="myCoarseMap1">
30 <Parameter name="factory" type="string" value="CoarseMapFactory"/>
31 <Parameter name="Striding info" type="string" value="{ 3 }"/>
32 <Parameter name="Strided block id" type="int" value="-1"/>
33 </ParameterList>
34
35 <ParameterList name="myTentativePFact1">
36 <Parameter name="factory" type="string" value="TentativePFactory"/>
37 <Parameter name="A" type="string" value="mySubBlockAFactory1"/>
38 <Parameter name="Aggregates" type="string" value="myAggFact1"/>
39 <Parameter name="CoarseMap" type="string" value="myCoarseMap1"/>
40 </ParameterList>
41
42 <!-- We have to use Nullspace1 here. If "Nullspace1" is not set the
43 Factory creates the default null space containing of constant
44 vectors -->
45 <ParameterList name="myNspFact1">
46 <Parameter name="factory" type="string" value="NullspaceFactory"/>
47 <Parameter name="Fine level nullspace" type="string" value="Nullspace1"/>
48 <Parameter name="Nullspace1" type="string" value="myTentativePFact1"/>
49 </ParameterList>
50
51 <!-- BLOCK 2 (for submatrix A_{11}) -->
52 <ParameterList name="mySubBlockAFactory2">
53 <Parameter name="factory" type="string" value="SubBlockAFactory"/>
54 <Parameter name="block row" type="int" value="1"/>
55 <Parameter name="block col" type="int" value="1"/>
56 <Parameter name="Range map: Striding info" type="string" value="{ 3 }"/>
57 <Parameter name="Domain map: Striding info" type="string" value="{ 3 }"/>
58 </ParameterList>
59
60 <ParameterList name="mySpringAFilterFactory">
61 <Parameter name="factory" type="string" value="DropNegativeEntriesFactory"/>
62 <Parameter name="A" type="string" value="mySubBlockAFactory2"/>
63 </ParameterList>
64
65 <ParameterList name="myGraphFact22">
66 <Parameter name="factory" type="string" value="CoalesceDropFactory"/>
67 <Parameter name="A" type="string" value="mySpringAFilterFactory"/>
68 </ParameterList>
69
70 <ParameterList name="myAggFact2">
71 <Parameter name="factory" type="string" value="UncoupledAggregationFactory"/>
72 <Parameter name="Graph" type="string" value="myGraphFact22"/>
73 <Parameter name="DofsPerNode" type="string" value="myGraphFact22"/>
74 <Parameter name="aggregation: min agg size" type="int" value="2"/>
75 <Parameter name="aggregation: max agg size" type="int" value="3"/>
76 </ParameterList>
77
78 <!-- tell the tentative prolongator that we have 1 DOF per node on the coarse levels -->
79 <!-- We use the factory "CoarseMapFactory" which always creates a standard coarse
80 level map starting with GIDs at 0. This is ok as we use Thyra like numbering
81 for the block operators. To obtain unique GIDs one would use the
82 BlockedCoarseMapFactory (see below) -->
83 <!--<ParameterList name="myCoarseMap2">
84 <Parameter name="factory" type="string" value="CoarseMapFactory"/>
85 <Parameter name="Striding info" type="string" value="{ 3 }"/>
86 <Parameter name="Strided block id" type="int" value="-1"/>
87 </ParameterList>-->
88
89 <!-- For the Xpetra style numbering one would use the BlockedCoarseMapFactory -->
90 <!-- It needs information about the coarse map for block 1 (myCoarseMap1 in this
91 example). It builds a new coarse map starting with GIDs from myCoarseMap1.maxGID + 1.
92 The number of GIDs is determined using the aggregation information. Since we are
93 reusing the aggregation from the first sub block for this sub block we have to
94 provide that information (myAggFact1). In fact, the information should also available
95 through the group "mySecondGroup", but it does not hurt here. -->
96 <ParameterList name="myCoarseMap2">
97 <Parameter name="factory" type="string" value="BlockedCoarseMapFactory"/>
98 <Parameter name="Aggregates" type="string" value="myAggFact2"/>
99 <Parameter name="CoarseMap" type="string" value="myCoarseMap1"/>
100 <Parameter name="Striding info" type="string" value="{ 3 }"/>
101 <Parameter name="Strided block id" type="int" value="-1"/>
102 </ParameterList>
103
104 <ParameterList name="myTentativePFact2">
105 <Parameter name="factory" type="string" value="TentativePFactory"/>
106 <Parameter name="A" type="string" value="mySubBlockAFactory2"/>
107 <Parameter name="Aggregates" type="string" value="myAggFact2"/>
108 <Parameter name="CoarseMap" type="string" value="myCoarseMap2"/>
109 </ParameterList>
110
111 <!-- We have to use Nullspace2 here. If "Nullspace2" is not set the
112 Factory creates the default null space containing of constant
113 vectors (here only one constant vector) -->
114 <ParameterList name="myNspFact2">
115 <Parameter name="factory" type="string" value="NullspaceFactory"/>
116 <Parameter name="Fine level nullspace" type="string" value="Nullspace2"/>
117 <Parameter name="Nullspace2" type="string" value="myTentativePFact2"/>
118 </ParameterList>
119
120 <!-- FACTORY MANAGERS -->
121
122 <!-- Multigrid setup for velocity block (A_{00}) -->
123 <ParameterList name="myFirstGroup">
124 <Parameter name="group" type="string" value="FactoryManager"/>
125 <Parameter name="A" type="string" value="mySubBlockAFactory1"/>
126 <Parameter name="P" type="string" value="myTentativePFact1"/>
127 <Parameter name="Aggregates" type="string" value="myAggFact1"/>
128 <Parameter name="Nullspace" type="string" value="myNspFact1"/>
129 <Parameter name="CoarseMap" type="string" value="myCoarseMap1"/>
130 </ParameterList>
131
132 <!-- Multigrid setup for pressure block (A_{11}) -->
133 <ParameterList name="mySecondGroup">
134 <Parameter name="group" type="string" value="FactoryManager"/>
135 <Parameter name="A" type="string" value="mySpringAFilterFactory"/>
136 <Parameter name="Graph" type="string" value="myGraphFact22"/>
137 <Parameter name="DofsPerNode" type="string" value="myGraphFact22"/>
138 <Parameter name="P" type="string" value="myTentativePFact2"/>
139 <Parameter name="Aggregates" type="string" value="myAggFact2"/>
140 <Parameter name="Nullspace" type="string" value="myNspFact2"/>
141 <Parameter name="CoarseMap" type="string" value="myCoarseMap2"/>
142 </ParameterList>
143
144 <!-- BLOCK TRANSFER operators -->
145
146 <!-- define block prolongation operator using above blocks -->
147 <ParameterList name="myBlockedPFact">
148 <Parameter name="factory" type="string" value="BlockedPFactory"/>
149 <!-- factory manager for block 1 -->
150 <ParameterList name="block1">
151 <Parameter name="group" type="string" value="myFirstGroup"/>
152 </ParameterList>
153 <!-- factory manager for block 2 -->
154 <ParameterList name="block2">
155 <Parameter name="group" type="string" value="mySecondGroup"/>
156 </ParameterList>
157 </ParameterList>
158
159 <!-- define block restriction operator using above blocks -->
160 <!-- The block restriction operator is usually always of type
161 GenericRFactory since we want to be able to combine, e.g.,
162 SmoothedAggregation for block A_{00} with e.g. tentative
163 prolongation for block A_{11} (or any other kind of transfer
164 strategy for the subblocks -->
165 <ParameterList name="myBlockedRFact">
166 <Parameter name="factory" type="string" value="GenericRFactory"/>
167 <Parameter name="P" type="string" value="myBlockedPFact"/>
168 </ParameterList>
169
170 <ParameterList name="mySpecialMapTransferFact">
171 <Parameter name="factory" type="string" value="MapTransferFactory"/>
172 <Parameter name="map: name" type="string" value="map SpecialMap"/>
173 <Parameter name="map: factory" type="string" value="NoFactory"/>
174 <Parameter name="P" type="string" value="myTentativePFact2"/>
175 </ParameterList>
176
177 <ParameterList name="myBlockedRAPFact">
178 <Parameter name="factory" type="string" value="BlockedRAPFactory"/>
179 <Parameter name="P" type="string" value="myBlockedPFact"/>
180 <Parameter name="R" type="string" value="myBlockedRFact"/>
181 <ParameterList name="TransferFactories">
182 <Parameter name="specialMapTransfer" type="string" value="mySpecialMapTransferFact"/>
183 </ParameterList>
184 </ParameterList>
185
186 <!-- BLOCK SMOOTHERS -->
187
188 <!-- block smoother for block A_{00} -->
189 <ParameterList name="mySmooFact1">
190 <Parameter name="factory" type="string" value="TrilinosSmoother"/>
191 <!--<Parameter name="type" type="string" value="ILUT"/> -->
192 <!--<Parameter name="type" type="string" value="ILU"/>
193 <ParameterList name="ParameterList">
194 <Parameter name="fact: level-of-fill" type="int" value="0"/>
195 </ParameterList>-->
196 <Parameter name="type" type="string" value="RELAXATION"/>
197 <ParameterList name="ParameterList">
198 <Parameter name="relaxation: type" type="string" value="$RELSMOOTYPE"/>
199 <Parameter name="relaxation: sweeps" type="int" value="$RELSMOOITER"/>
200 <Parameter name="relaxation: damping factor" type="double" value="$RELSMOODAMP"/>
201 </ParameterList>
202 <!-- You don't have to specify the input matrix A for the smoother -->
203 <!-- It is clear from the subblocks in the BlockedSmoother -->
204 <!--<Parameter name="A" type="string" value="mySubBlockAFactory1"/>-->
205 </ParameterList>
206
207 <!-- Build Schur Complement factory (for being used in SIMPLE type block smoother)-->
208 <ParameterList name="mySchurCompFact">
209 <Parameter name="factory" type="string" value="SchurComplementFactory"/>
210 <Parameter name="omega" type="double" value="1.0"/>
211 <Parameter name="lumping" type="bool" value="true"/>
212 </ParameterList>
213
214 <!-- block smoother for block A_{11} respective the Schur complement operator -->
215 <ParameterList name="mySchurSmooFact">
216 <Parameter name="factory" type="string" value="TrilinosSmoother"/>
217 <Parameter name="type" type="string" value="$SCHURSMOOTYPE"/><!-- for Ifpack2 -->
218 <!--<Parameter name="type" type="string" value="ILUT"/> --> <!-- for Ifpack -->
219 <ParameterList name="ParameterList">
220 <Parameter name="fact: level-of-fill" type="int" value="$SCHURSMOOFILL"/>
221 </ParameterList>
222 <!-- You don't have to specify the input matrix A for the smoother -->
223 <!-- It is clear from the subblocks in the BlockedSmoother below -->
224 <!--<Parameter name="A" type="string" value="mySchurCompFact"/>-->
225 </ParameterList>
226
227 <ParameterList name="myDirectSolverFact">
228 <Parameter name="factory" type="string" value="DirectSolver"/>
229 <Parameter name="type" type="string" value="Amesos-KLU"/><!-- for Ifpack2 -->
230 <!--<Parameter name="type" type="string" value="ILUT"/> --> <!-- for Ifpack -->
231 <Parameter name="A" type="string" value="mySchurCompFact"/>
232 <ParameterList name="ParameterList">
233 <Parameter name="Reindex" type="bool" value="true"/>
234 </ParameterList>
235 </ParameterList>
236
237 <!-- Use SIMPLE: -->
238 <!-- User has to define two blocks with each containing a smoother for
239 the corresponding sub-block matrix (see above) -->
240 <ParameterList name="myBlockSmoother">
241 <Parameter name="factory" type="string" value="SimpleSmoother"/>
242 <Parameter name="Sweeps" type="int" value="$COARSESIMPLESWEEPS"/>
243 <Parameter name="Damping factor" type="double" value="$COARSESIMPLERELAX"/>
244 <Parameter name="UseSIMPLEC" type="bool" value="$COARSEUSESIMPLEC"/>
245 <!-- factory manager for block 1 -->
246 <ParameterList name="block1">
247 <!-- <Parameter name="group" type="string" value="myFirstGroup"/> -->
248 <!-- It's enough to just provide the sub block matrix A_{00} needed
249 as input for the smoother "mySmooFact1" as well as the smoother
250 itself. Alternatively, one could add below strings to the
251 factory group "myFirstGroup" and use it here instead of below lines -->
252 <Parameter name="A" type="string" value="mySubBlockAFactory1"/>
253 <Parameter name="Smoother" type="string" value="mySmooFact1"/>
254 </ParameterList>
255 <!-- factory manager for block 2 -->
256 <ParameterList name="block2">
257 <!-- The second equation in the SIMPLE smoother is the Schur complement
258 equation that has to be solved. Therefore, provide the Schur complement
259 operator together with the smoother. The smoother object takes the
260 Schur complement operator as operator "A" for the internal smoothing process. -->
261 <!--<Parameter name="A" type="string" value="mySchurCompFact"/>-->
262 <Parameter name="A" type="string" value="mySubBlockAFactory2"/>
263 <Parameter name="Smoother" type="string" value="myDirectSolverFact"/>
264 <!--<Parameter name="Smoother" type="string" value="mySchurSmooFact"/>-->
265 </ParameterList>
266 </ParameterList>
267
268 <!-- Use SIMPLE: -->
269 <!-- User has to define two blocks with each containing a smoother for
270 the corresponding sub-block matrix (see above) -->
271 <ParameterList name="myBlockSmootherFinest">
272 <Parameter name="factory" type="string" value="SimpleSmoother"/>
273 <Parameter name="Sweeps" type="int" value="$SIMPLESWEEPS"/>
274 <Parameter name="Damping factor" type="double" value="$SIMPLERELAX"/>
275 <Parameter name="UseSIMPLEC" type="bool" value="$USESIMPLEC"/>
276 <!-- factory manager for block 1 -->
277 <ParameterList name="block1">
278 <!-- <Parameter name="group" type="string" value="myFirstGroup"/> -->
279 <!-- It's enough to just provide the sub block matrix A_{00} needed
280 as input for the smoother "mySmooFact1" as well as the smoother
281 itself. Alternatively, one could add below strings to the
282 factory group "myFirstGroup" and use it here instead of below lines -->
283 <Parameter name="A" type="string" value="mySubBlockAFactory1"/>
284 <Parameter name="Smoother" type="string" value="mySmooFact1"/>
285 </ParameterList>
286 <!-- factory manager for block 2 -->
287 <ParameterList name="block2">
288 <!-- The second equation in the SIMPLE smoother is the Schur complement
289 equation that has to be solved. Therefore, provide the Schur complement
290 operator together with the smoother. The smoother object takes the
291 Schur complement operator as operator "A" for the internal smoothing process. -->
292 <!--<Parameter name="A" type="string" value="mySchurCompFact"/>-->
293 <Parameter name="A" type="string" value="mySubBlockAFactory2"/>
294 <Parameter name="Smoother" type="string" value="mySchurSmooFact"/>
295 </ParameterList>
296 </ParameterList>
297
298 </ParameterList>
299 <!-- end Factory collection -->
300
301 <!-- Definition of the multigrid preconditioner -->
302 <ParameterList name="Hierarchy">
303
304 <Parameter name="max levels" type="int" value="$MAXLEVEL"/>
305 <Parameter name="coarse: max size" type="int" value="$MAXCOARSESIZE"/>
306 <Parameter name="verbosity" type="string" value="High"/>
307
308 <ParameterList name="AllButFinestLevel">
309 <Parameter name="startLevel" type="int" value="1"/>
310 <Parameter name="Smoother" type="string" value="myBlockSmootherFinest"/>
311 <Parameter name="CoarseSolver" type="string" value="myBlockSmootherFinest"/>
312 <Parameter name="P" type="string" value="myBlockedPFact"/>
313 <Parameter name="R" type="string" value="myBlockedRFact"/>
314 <Parameter name="A" type="string" value="myBlockedRAPFact"/>
315 </ParameterList>
316
317 <ParameterList name="Finest">
318 <Parameter name="Smoother" type="string" value="myBlockSmootherFinest"/>
319 <Parameter name="CoarseSolver" type="string" value="myBlockSmoother"/>
320 <Parameter name="P" type="string" value="myBlockedPFact"/>
321 <Parameter name="R" type="string" value="myBlockedRFact"/>
322 <Parameter name="A" type="string" value="myBlockedRAPFact"/>
323 </ParameterList>
324
325 </ParameterList>
326 </ParameterList>