16af0ca60SMatthew G. Knepley /* 26af0ca60SMatthew G. Knepley Objects which encapsulate discretizations+continuum residuals 36af0ca60SMatthew G. Knepley */ 426bd1501SBarry Smith #if !defined(PETSCCE_H) 526bd1501SBarry Smith #define PETSCCE_H 6*ac09b921SBarry Smith 76af0ca60SMatthew G. Knepley #include <petscsnes.h> 86af0ca60SMatthew G. Knepley 9*ac09b921SBarry Smith /* SUBMANSEC = SNES */ 10*ac09b921SBarry Smith 116af0ca60SMatthew G. Knepley /*S 126af0ca60SMatthew G. Knepley PetscConvEst - Provides an estimated convergence rate for a discretized problem 136af0ca60SMatthew G. Knepley 146af0ca60SMatthew G. Knepley Level: developer 156af0ca60SMatthew G. Knepley 16db781477SPatrick Sanan .seealso: `PetscConvEstCreate()`, `PetscConvEstDestroy()` 176af0ca60SMatthew G. Knepley S*/ 186af0ca60SMatthew G. Knepley typedef struct _p_PetscConvEst *PetscConvEst; 196af0ca60SMatthew G. Knepley 206af0ca60SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscConvEstCreate(MPI_Comm, PetscConvEst *); 216af0ca60SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscConvEstDestroy(PetscConvEst *); 226af0ca60SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscConvEstView(PetscConvEst, PetscViewer); 236af0ca60SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscConvEstSetFromOptions(PetscConvEst); 24900f6b5bSMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscConvEstGetSolver(PetscConvEst, PetscObject *); 25900f6b5bSMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscConvEstSetSolver(PetscConvEst, PetscObject); 260955ed61SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscConvEstSetUp(PetscConvEst); 27900f6b5bSMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscConvEstComputeInitialGuess(PetscConvEst, PetscInt, DM, Vec); 28900f6b5bSMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscConvEstComputeError(PetscConvEst, PetscInt, DM, Vec, PetscReal[]); 2946079b62SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscConvEstGetConvRate(PetscConvEst, PetscReal[]); 30f2cacb80SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscConvEstMonitorDefault(PetscConvEst, PetscInt); 31a56d3bf6SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscConvEstRateView(PetscConvEst, const PetscReal[], PetscViewer); 326af0ca60SMatthew G. Knepley 336af0ca60SMatthew G. Knepley #endif 34