lis_solver_set_option(3)
β¨ lis_solver_set_option(3) β it's a Lis Library Functions moment β¨
okay bestie, listen, this one lives in the Lis Library Functions section of the manual (that's the man page family, iykyk) and it's literally just "here's how you tell the solver what to do." no cap, it's giving control panel energy ποΈ
πΈ NAME πΈ
lis_solver_set_option β set the options for the solver π
π¦ SYNOPSIS π¦
#include "lis.h"
LIS_INT lis_solver_set_option(char *text, LIS_SOLVER *solver);
π DESCRIPTION π
It sets the options for the solver. That's it, that's the whole vibe β you hand it some text full of flags and it makes the solver act accordingly. iconic behavior honestly β¨
π INPUT π
textβ The command line options π«Ά
π OUTPUT π
solverβ The solver π
β EXIT STATUS β
Here's what you can get back, bestie:
0β The process is normally terminated βunspecifiedβ An error occurred π
π NOTE π
So the option tables below have a little shorthand you need to know or you WILL be confused, and not in the cute way. When you see -i {cg|1}, that means you can write either -i cg or -i 1 β same thing, two names. And when you see brackets like -maxiter [1000], the number inside is the default, so -maxiter defaults to 1,000. periodt π
π₯ OPTIONS π₯
The following options are supported:
-ilinear solver β pick your linear solver, this is the main character choice fr. Here's everything supported for it:-i {cg|1}β CG-i {bicg|2}β BiCG-i {cgs|3}β CGS-i {bicgstab|4}β BiCGSTAB-i {bicgstabl|5}β BiCGSTAB(l)-ell [2]β The degree l
-i {gpbicg|6}β GPBiCG-i {tfqmr|7}β TFQMR-i {orthomin|8}β Orthomin(m)-restart [40]β The restart value m
-i {gmres|9}β GMRES(m)-restart [40]β The restart value m
-i {jacobi|10}β Jacobi-i {gs|11}β Gauss-Seidel-i {sor|12}β SOR-omega [1.9]β The relaxation coefficient omega (0<omega<2)
-i {bicgsafe|13}β BiCGSafe-i {cr|14}β CR-i {bicr|15}β BiCR-i {crs|16}β CRS-i {bicrstab|17}β BiCRSTAB-i {gpbicr|18}β GPBiCR-i {bicrsafe|19}β BiCRSafe-i {fgmres|20}β FGMRES(m)-restart [40]β The restart value m
-i {idrs|21}β IDR(s)-irestart [2]β The restart value s
-i {idr1|22}β IDR(1)-i {minres|23}β MINRES-i {cocg|24}β COCG-i {cocr|25}β COCR
-ppreconditioner β now for the preconditioner, aka the glow-up your matrix gets before the solver looks at it π. The following options are supported:-p {none|0}β None-p {jacobi|1}β Jacobi-p {ilu|2}β ILU(k)-ilu_fill [0]β The fill level k
-p {ssor|3}β SSOR-ssor_omega [1.0]β The relaxation coefficient omega (0<omega<2)
-p {hybrid|4}β Hybrid-hybrid_i [sor]β The linear solver-hybrid_maxiter [25]β The maximum number of iterations-hybrid_tol [1.0e-3]β The convergence criterion-hybrid_omega [1.5]β The relaxation coefficient omega of the SOR (0<omega<2)-hybrid_ell [2]β The degree l of the BiCGSTAB(l)-hybrid_restart [40]β The restart values of the GMRES and Orthomin
-p {is|5}β I+S-is_alpha [1.0]β The parameter alpha of I+alpha*S(m)-is_m [3]β The parameter m of I+alpha*S(m)
-p {sainv|6}β SAINV-sainv_drop [0.05]β The drop criterion
-p {saamg|7}β SA-AMG-saamg_unsym [false]β Select the unsymmetric version (The matrix structure must be symmetric) β οΈ yes bestie, read that parenthetical, the structure has to be symmetric-saamg_theta [0.05|0.12]β The drop criterion
-p {iluc|8}β Crout ILU-iluc_drop [0.05]β The drop criterion-iluc_rate [5.0]β The ration of maximum fill-in
-p {ilut|9}β ILUT-ilut_drop [0.05]β The drop criterion-ilut_rate [5.0]β The ration of maximum fill-in
-adds trueβ Additive Schwarz-adds_iter [1]β The number of iteration
π Other Options π
-maxiter [1000]β The maximum number of iterations-tol [1.0e-12]β The convergence criterion-print [0]β The display of the residual-print {none|0}β None-print {mem|1}β Save the residual history-print {out|2}β Display the residual history-print {all|3}β Save the residual history and display it on the screen
-scale [0]β The scaling-scale {none|0}β No scaling-scale {jacobi|1}β The Jacobi scaling-scale {symm_diag|2}β The diagonal scaling
-initx_zeros [true]β The behavior of the initial vector x_0-initx_zero {false|0}β Given values-initx_zero {true|1}β All values are set to 0
-omp_num_threads [t]β The number of threads (t represents the maximum number of threads)-storage [0]β The matrix storage format-storage_block [2]β The block size of the BSR and BSC formats-f [0]β The precision of the linear solver-f {double|0}β Double precision-f {quad|1}β Double-double (quadruple) precision
See Lis User Guide for full description. fr fr, go read it if you want the whole lore π
π§ SEE ALSO π§
and that's the whole page bestie π this cutie was served up by the Man Page crew on 14 Sep 2017, and its official handle is lis_solver_set_option(3) β go forth and set those options, you absolute legend πβ¨
π¦ where this page comes from
- fedora 43: lis-doc 2.0.21-13.fc41 Β· BSD
- fedora 43: lis-doc 2.1.11-1.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: lis-doc 2.0.21-13.fc41 Β· BSD
- fedora 44: lis-doc 2.1.11-1.fc44 Β· LicenseRef-Callaway-BSD
- nixos 26.05: lis 2.1.10
- nixpkgs unstable: lis 2.1.16
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms