1*5675c177SMatthew G. Knepley /* 2*5675c177SMatthew G. Knepley Objects which encapsulate mesh adaptation operation 3*5675c177SMatthew G. Knepley */ 4*5675c177SMatthew G. Knepley #if !defined(__PETSCDMADAPTOR_H) 5*5675c177SMatthew G. Knepley #define __PETSCDMADAPTOR_H 6*5675c177SMatthew G. Knepley #include <petscdm.h> 7*5675c177SMatthew G. Knepley #include <petscconvest.h> 8*5675c177SMatthew G. Knepley 9*5675c177SMatthew G. Knepley /*S 10*5675c177SMatthew G. Knepley DMAdaptor - The adaptor constructs a DMLabel or metric Vec that can be used to modify the DM. 11*5675c177SMatthew G. Knepley 12*5675c177SMatthew G. Knepley Level: developer 13*5675c177SMatthew G. Knepley 14*5675c177SMatthew G. Knepley .seealso: PetscConvEstCreate(), PetscConvEstDestroy() 15*5675c177SMatthew G. Knepley S*/ 16*5675c177SMatthew G. Knepley typedef struct _p_DMAdaptor *DMAdaptor; 17*5675c177SMatthew G. Knepley 18*5675c177SMatthew G. Knepley PETSC_EXTERN PetscErrorCode DMAdaptorCreate(MPI_Comm, DMAdaptor *); 19*5675c177SMatthew G. Knepley PETSC_EXTERN PetscErrorCode DMAdaptorDestroy(DMAdaptor *); 20*5675c177SMatthew G. Knepley PETSC_EXTERN PetscErrorCode DMAdaptorView(DMAdaptor, PetscViewer); 21*5675c177SMatthew G. Knepley PETSC_EXTERN PetscErrorCode DMAdaptorSetFromOptions(DMAdaptor); 22*5675c177SMatthew G. Knepley PETSC_EXTERN PetscErrorCode DMAdaptorGetSolver(DMAdaptor, SNES *); 23*5675c177SMatthew G. Knepley PETSC_EXTERN PetscErrorCode DMAdaptorSetSolver(DMAdaptor, SNES); 24*5675c177SMatthew G. Knepley PETSC_EXTERN PetscErrorCode DMAdaptorSetUp(DMAdaptor); 25*5675c177SMatthew G. Knepley PETSC_EXTERN PetscErrorCode DMAdaptorAdapt(DMAdaptor, Vec, DMAdaptationType, DM *); 26*5675c177SMatthew G. Knepley 27*5675c177SMatthew G. Knepley #endif 28