hydromodpy.solver.boussinesq.runtimes.petsc_vi.petsc#

PETSc SNESVI configuration and solver diagnostics.

Functions

accept_failed_snes_by_projected_tolerance(*, ...)

Accept a failed PETSc SNESVI stop only when the VI policy is satisfied.

configure_vi_snes(PETSc, snes, *, ...)

Apply experimental PETSc VI defaults while keeping options overrideable.

ksp_reason_label(reason)

Return one readable label for common PETSc KSP reasons.

linear_converged_reason(snes)

Return PETSc KSP converged reason when available.

linear_iteration_count(snes)

Return PETSc linear iterations when available.

petsc_solver_configuration(snes)

Return PETSc SNES/KSP/PC option values when petsc4py exposes them.