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 66af0ca60SMatthew G. Knepley #include <petscsnes.h> 76af0ca60SMatthew G. Knepley 86af0ca60SMatthew G. Knepley /*S 96af0ca60SMatthew G. Knepley PetscConvEst - Provides an estimated convergence rate for a discretized problem 106af0ca60SMatthew G. Knepley 116af0ca60SMatthew G. Knepley Level: developer 126af0ca60SMatthew G. Knepley 136af0ca60SMatthew G. Knepley .seealso: PetscConvEstCreate(), PetscConvEstDestroy() 146af0ca60SMatthew G. Knepley S*/ 156af0ca60SMatthew G. Knepley typedef struct _p_PetscConvEst *PetscConvEst; 166af0ca60SMatthew G. Knepley 176af0ca60SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscConvEstCreate(MPI_Comm, PetscConvEst *); 186af0ca60SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscConvEstDestroy(PetscConvEst *); 196af0ca60SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscConvEstView(PetscConvEst, PetscViewer); 206af0ca60SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscConvEstSetFromOptions(PetscConvEst); 21900f6b5bSMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscConvEstGetSolver(PetscConvEst, PetscObject *); 22900f6b5bSMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscConvEstSetSolver(PetscConvEst, PetscObject); 230955ed61SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscConvEstSetUp(PetscConvEst); 24900f6b5bSMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscConvEstComputeInitialGuess(PetscConvEst, PetscInt, DM, Vec); 25900f6b5bSMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscConvEstComputeError(PetscConvEst, PetscInt, DM, Vec, PetscReal[]); 2646079b62SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscConvEstGetConvRate(PetscConvEst, PetscReal[]); 27*f2cacb80SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscConvEstMonitorDefault(PetscConvEst, PetscInt); 28a56d3bf6SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscConvEstRateView(PetscConvEst, const PetscReal[], PetscViewer); 296af0ca60SMatthew G. Knepley 306af0ca60SMatthew G. Knepley #endif 31