You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following abbreviations can be useful for reading the table below.
6
+
7
+
-[D] - Default
8
+
-[I] - Integer type
9
+
-[R] - Real type
10
+
-[S] - String type
11
+
12
+
| Parameter | Use | Comment |
13
+
| --------- | --- | ------- |
14
+
|`solver`| Applied Krylov solver. Corresponds to the `-ksp_type` PETSc parameter. |[S][D] = "cg"<br />**Note**: You can find all possible options on [this page](https://petsc.org/release/manual/ksp/#tab-kspdefaults). |
15
+
|`pc-type`| Applied preconditioner. Corresponds to the `-pc_type` PETSc parameter. |[S][D] = "jacobi"<br />**Note**: You can find all possible options on [this page](https://petsc.org/release/manual/ksp/#tab-pcdefaults). |
16
+
|`rtol`| Relative convergence tolerance for the Krylov Solver. |[R][D] = 1.0e-7 |
17
+
|`atol`| Absolute convergence tolerance for the Krylov Solver. |[R][D] = 0.0<br />set `rtol` to 0 if you want to use `atol`|
18
+
|`max-iter`| Maximum Krylov iterations. |[I][D] = 1000 |
19
+
20
+
## Matrix and Vector types
21
+
22
+
The matrix and vector types use internally by PETSc are deducted by default by a number of parameters:
23
+
24
+
- Is the program running on a single process or on multi processes ?
25
+
- Is the program running on GPU(s) (`AcceleratorRuntime` option) ?
26
+
27
+
**Notes**:
28
+
- Before using a certain type of matrix on GPU, check if it is supported on your machine. You can find this information on [this page](https://petsc.org/release/overview/gpu_roadmap).
29
+
- All possible options for matrix types can be found [here](https://petsc.org/release/overview/matrix_table).
30
+
- All possible options for vector types can be found [here](https://petsc.org/release/overview/vector_table).
31
+
32
+
## Custom options
33
+
34
+
Finally, you can specify any PETSc option you want with the `-A,petsc_flags` Arcane option. The flags specified by this option will **overwrite** the default ones (`atol`, `rtol`, `pc\_type`, `mat\_type`...). This can be useful to test some options quickly or to specify ones that are not in the `.axl` ([GAMG options](https://petsc.org/release/manualpages/PC/PCGAMG) for example).
35
+
36
+
To enable the optimizations that were done for the allocation of the matrix, the user has to put ```m_linear_system.setConstantMatrixSparsity(true);``` and / or ```m_linear_system.setConstantMatrixValues(true);```.
37
+
The user cannot have constant values without constant sparsity. Arcane will prevent this behaviour by throwing an error.
0 commit comments