1 #if !defined(__PETSCDMSHELL_H) 2 #define __PETSCDMSHELL_H 3 4 #include <petscdm.h> 5 6 PETSC_EXTERN PetscErrorCode DMShellCreate(MPI_Comm,DM*); 7 PETSC_EXTERN PetscErrorCode DMShellSetMatrix(DM,Mat); 8 PETSC_EXTERN PetscErrorCode DMShellSetGlobalVector(DM,Vec); 9 PETSC_EXTERN PetscErrorCode DMShellSetLocalVector(DM,Vec); 10 PETSC_EXTERN PetscErrorCode DMShellSetCreateGlobalVector(DM,PetscErrorCode (*)(DM,Vec*)); 11 PETSC_EXTERN PetscErrorCode DMShellSetCreateLocalVector(DM,PetscErrorCode (*)(DM,Vec*)); 12 PETSC_EXTERN PetscErrorCode DMShellSetGlobalToLocal(DM,PetscErrorCode (*)(DM,Vec,InsertMode,Vec),PetscErrorCode (*)(DM,Vec,InsertMode,Vec)); 13 PETSC_EXTERN PetscErrorCode DMShellSetGlobalToLocalVecScatter(DM,VecScatter*); 14 PETSC_EXTERN PetscErrorCode DMShellSetLocalToGlobal(DM,PetscErrorCode (*)(DM,Vec,InsertMode,Vec),PetscErrorCode (*)(DM,Vec,InsertMode,Vec)); 15 PETSC_EXTERN PetscErrorCode DMShellSetCreateMatrix(DM,PetscErrorCode (*)(DM,MatType,Mat*)); 16 PETSC_EXTERN PetscErrorCode DMShellDefaultGlobalToLocalBegin(DM dm,Vec g,InsertMode mode,Vec l); 17 PETSC_EXTERN PetscErrorCode DMShellDefaultGlobalToLocalEnd(DM dm,Vec g,InsertMode mode,Vec l); 18 19 #endif 20