Skip to content

PETSc options prefix for invertable operators is incorrect #3332

@Plasdom

Description

@Plasdom

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions