petsc-3.7.1 2016-05-15
Report Typos and Errors

KSPSetSupportedNorm

Sets a norm and preconditioner side supported by a KSP

Synopsis

#include "petscksp.h" 
PetscErrorCode KSPSetSupportedNorm(KSP ksp,KSPNormType normtype,PCSide pcside,PetscInt priority)
Logically Collective Many br

Input Arguments

ksp - Krylov method Many br
normtype - supported norm type Many br
pcside - preconditioner side that can be used with this norm Many br
preference - integer preference for this combination, larger values have higher priority Many br

Many br

Notes

This function should be called from the implementation files KSPCreate_XXX() to declare Many brwhich norms and preconditioner sides are supported. Users should not need to call this Many brfunction. Many br

KSP_NORM_NONE is supported by default with all KSP methods and any PC side at priority 1. If a KSP explicitly does Many brnot support KSP_NORM_NONE, it should set this by setting priority=0. Since defaulting to KSP_NORM_NONE is usually Many brundesirable, more desirable norms should usually have priority 2 or higher. Many br

See Also

KSPSetNormType(), KSPSetPCSide()

Level:developer
Location:
src/ksp/ksp/interface/itcreate.c
Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages