The intended PETSc options prefix for invertable operators is invertable_. See https://bout-dev.readthedocs.io/en/stable/user_docs/invertable_operator.html, also
|
ierr = KSPSetOptionsPrefix(ksp, "invertable_"); |
But using this prefix in an input file does not pass these options on to PETSc. Instead, the prefix boutpetsclib_invertableOperator works, so the following input file snippet is what's needed to change e.g. ksp_type and ksp_max_it:
[petsc]
boutpetsclib_invertableOperatorksp_type=minres
boutpetsclib_invertableOperatorksp_max_it=100000
I'm using BOUT++ v5.1.2 and PETSc v.3.21.
The intended PETSc options prefix for invertable operators is
invertable_. See https://bout-dev.readthedocs.io/en/stable/user_docs/invertable_operator.html, alsoBOUT-dev/include/bout/invertable_operator.hxx
Line 361 in d9f2a66
But using this prefix in an input file does not pass these options on to PETSc. Instead, the prefix
boutpetsclib_invertableOperatorworks, so the following input file snippet is what's needed to change e.g. ksp_type and ksp_max_it:I'm using BOUT++ v5.1.2 and PETSc v.3.21.