Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ElmerCSC
GitHub Repository: ElmerCSC/elmerfem
Path: blob/devel/fem/examples/TrilinosSolvers/belos_ml.xml
5284 views
1
<!-- this parameter file demonstrates how to use the AMG solver ML -->
2
<!-- without an outer Krylov iteration. This is useful for block -->
3
<!-- preconditioning with an inexact inner solve. At the moment -->
4
<!-- you can only set the number of cycles, not a convergence -->
5
<!-- tolerance, as ML is handled internally as a preconditioner, -->
6
<!-- not a solver. -->
7
<ParameterList name="ML stand-alone"><!--{-->
8
9
<Parameter name="Dump Matrix" type="bool" value="false"/>
10
<Parameter name="Dump Vectors" type="bool" value="false"/>
11
12
<Parameter name="Iterative Solver" type="string" value="GMRES"/>
13
14
<!-- parameters for the iterative solver (Belos) -->
15
<ParameterList name="Belos">
16
<Parameter name="Maximum Iterations" type="int" value="500"/>
17
<Parameter name="Block Size" type="int" value="1"/>
18
<Parameter name="Maximum Restarts" type="int" value="0"/>
19
<Parameter name="Convergence Tolerance" type="double" value="1.0e-10"/>
20
<Parameter name="Output Frequency" type="int" value="1"/>
21
<Parameter name="Show Maximum Residual Norm Only" type="bool" value="1"/>
22
</ParameterList>
23
24
25
<Parameter name="Preconditioner" type="string" value="ML"/>
26
27
<!-- these are some diagnostic tools in ML that can be useful: -->
28
<Parameter name="ML: Analyze Cycle" type="bool" value="false"/>
29
<Parameter name="ML: Test Smoothers" type="bool" value="false"/>
30
31
<ParameterList name="ML">
32
33
<Parameter name="ML output" type="int" value="0"/>
34
<Parameter name="ML validate parameter list" type="bool" value="true"/>
35
36
<!-- number of unknowns per node -->
37
<Parameter name="PDE equations" type="int" value="1"/>
38
39
<!-- number of MG cycles -->
40
<Parameter name="cycle applications" type="int" value="1"/>
41
42
<!-- SA stands for 'smoothed aggregation', other options include -->
43
<!-- DD (two-level domain decomposition), DD-ML (3-level method),-->
44
<!-- NSSA (non-symmetric SA etc. -->
45
<Parameter name="default values" type="string" value="SA"/>
46
47
<Parameter name="max levels" type="int" value="7"/>
48
<Parameter name="aggregation: type" type="string" value="Uncoupled-MIS"/>
49
<Parameter name="prec type" type="string" value="MGV"/>
50
<Parameter name="coarse: type" type="string" value="Amesos-KLU"/>
51
<Parameter name="smoother: type" type="string" value="symmetric Gauss-Seidel"/>
52
<Parameter name="smoother: damping factor" type="double" value="0.5"/>
53
<Parameter name="smoother: pre or post" type="string" value="both"/>
54
<Parameter name="smoother: sweeps" type="int" value="1"/>
55
56
<!-- etc., we stick to the default values for this example -->
57
58
</ParameterList>
59
60
</ParameterList><!--}-->
61
62