Actual source code: petscdmshell.h

petsc-master 2019-07-16
Report Typos and Errors
  1: #if !defined(PETSCDMSHELL_H)
  2: #define PETSCDMSHELL_H

  4:  #include <petscdm.h>

  6: PETSC_EXTERN PetscErrorCode DMShellCreate(MPI_Comm,DM*);
  7: PETSC_EXTERN PetscErrorCode DMShellSetContext(DM,void *);
  8: PETSC_EXTERN PetscErrorCode DMShellGetContext(DM,void **);
  9: PETSC_EXTERN PetscErrorCode DMShellSetMatrix(DM,Mat);
 10: PETSC_EXTERN PetscErrorCode DMShellSetGlobalVector(DM,Vec);
 11: PETSC_EXTERN PetscErrorCode DMShellSetLocalVector(DM,Vec);
 12: PETSC_EXTERN PetscErrorCode DMShellSetCreateGlobalVector(DM,PetscErrorCode (*)(DM,Vec*));
 13: PETSC_EXTERN PetscErrorCode DMShellSetCreateLocalVector(DM,PetscErrorCode (*)(DM,Vec*));
 14: PETSC_EXTERN PetscErrorCode DMShellSetGlobalToLocal(DM,PetscErrorCode (*)(DM,Vec,InsertMode,Vec),PetscErrorCode (*)(DM,Vec,InsertMode,Vec));
 15: PETSC_EXTERN PetscErrorCode DMShellSetGlobalToLocalVecScatter(DM,VecScatter);
 16: PETSC_EXTERN PetscErrorCode DMShellSetLocalToGlobal(DM,PetscErrorCode (*)(DM,Vec,InsertMode,Vec),PetscErrorCode (*)(DM,Vec,InsertMode,Vec));
 17: PETSC_EXTERN PetscErrorCode DMShellSetLocalToGlobalVecScatter(DM,VecScatter);
 18: PETSC_EXTERN PetscErrorCode DMShellSetLocalToLocal(DM,PetscErrorCode (*)(DM,Vec,InsertMode,Vec),PetscErrorCode (*)(DM,Vec,InsertMode,Vec));
 19: PETSC_EXTERN PetscErrorCode DMShellSetLocalToLocalVecScatter(DM,VecScatter);
 20: PETSC_EXTERN PetscErrorCode DMShellSetCreateMatrix(DM,PetscErrorCode (*)(DM,Mat*));
 21: PETSC_EXTERN PetscErrorCode DMShellSetCoarsen(DM,PetscErrorCode (*)(DM,MPI_Comm,DM*));
 22: PETSC_EXTERN PetscErrorCode DMShellGetCoarsen(DM,PetscErrorCode (**)(DM,MPI_Comm,DM*));
 23: PETSC_EXTERN PetscErrorCode DMShellSetRefine(DM,PetscErrorCode (*)(DM,MPI_Comm,DM*));
 24: PETSC_EXTERN PetscErrorCode DMShellGetRefine(DM,PetscErrorCode (**)(DM,MPI_Comm,DM*));
 25: PETSC_EXTERN PetscErrorCode DMShellSetCreateInterpolation(DM,PetscErrorCode (*)(DM,DM,Mat*,Vec*));
 26: PETSC_EXTERN PetscErrorCode DMShellGetCreateInterpolation(DM,PetscErrorCode (**)(DM,DM,Mat*,Vec*));
 27: PETSC_EXTERN PetscErrorCode DMShellSetCreateRestriction(DM, PetscErrorCode (*)(DM,DM,Mat*));
 28: PETSC_EXTERN PetscErrorCode DMShellGetCreateRestriction(DM, PetscErrorCode (**)(DM,DM,Mat*));
 29: PETSC_EXTERN PetscErrorCode DMShellSetCreateInjection(DM,PetscErrorCode (*)(DM,DM,Mat*));
 30: PETSC_EXTERN PetscErrorCode DMShellGetCreateInjection(DM,PetscErrorCode (**)(DM,DM,Mat*));
 31: PETSC_EXTERN PetscErrorCode DMShellSetCreateFieldDecomposition(DM,PetscErrorCode (*)(DM,PetscInt*,char***,IS**,DM**));
 32: PETSC_EXTERN PetscErrorCode DMShellSetCreateDomainDecomposition(DM,PetscErrorCode (*)(DM,PetscInt*,char***,IS**,IS**,DM**));
 33: PETSC_EXTERN PetscErrorCode DMShellSetCreateDomainDecompositionScatters(DM,PetscErrorCode (*)(DM,PetscInt,DM*,VecScatter**,VecScatter**,VecScatter**));
 34: PETSC_EXTERN PetscErrorCode DMShellSetCreateSubDM(DM,PetscErrorCode (*)(DM,PetscInt,const PetscInt[],IS*,DM*));
 35: PETSC_EXTERN PetscErrorCode DMShellGetCreateSubDM(DM,PetscErrorCode (**)(DM,PetscInt,const PetscInt[],IS*,DM*));
 36: PETSC_EXTERN PetscErrorCode DMGlobalToLocalBeginDefaultShell(DM,Vec,InsertMode,Vec);
 37: PETSC_EXTERN PetscErrorCode DMGlobalToLocalEndDefaultShell(DM,Vec,InsertMode,Vec);
 38: PETSC_EXTERN PetscErrorCode DMLocalToGlobalBeginDefaultShell(DM,Vec,InsertMode,Vec);
 39: PETSC_EXTERN PetscErrorCode DMLocalToGlobalEndDefaultShell(DM,Vec,InsertMode,Vec);
 40: PETSC_EXTERN PetscErrorCode DMLocalToLocalBeginDefaultShell(DM,Vec,InsertMode,Vec);
 41: PETSC_EXTERN PetscErrorCode DMLocalToLocalEndDefaultShell(DM,Vec,InsertMode,Vec);

 43: #endif