126bd1501SBarry Smith #if !defined(PETSCDMSHELL_H) 226bd1501SBarry Smith #define PETSCDMSHELL_H 3fe1899a2SJed Brown 42c8e378dSBarry Smith #include <petscdm.h> 5fe1899a2SJed Brown 6014dd563SJed Brown PETSC_EXTERN PetscErrorCode DMShellCreate(MPI_Comm,DM*); 7fef3a512SBarry Smith PETSC_EXTERN PetscErrorCode DMShellSetContext(DM,void *); 8fef3a512SBarry Smith PETSC_EXTERN PetscErrorCode DMShellGetContext(DM,void **); 9014dd563SJed Brown PETSC_EXTERN PetscErrorCode DMShellSetMatrix(DM,Mat); 10014dd563SJed Brown PETSC_EXTERN PetscErrorCode DMShellSetGlobalVector(DM,Vec); 11*04d741b1SMatthew G. Knepley PETSC_EXTERN PetscErrorCode DMShellGetGlobalVector(DM,Vec*); 12dc43b69eSJed Brown PETSC_EXTERN PetscErrorCode DMShellSetLocalVector(DM,Vec); 13014dd563SJed Brown PETSC_EXTERN PetscErrorCode DMShellSetCreateGlobalVector(DM,PetscErrorCode (*)(DM,Vec*)); 14dc43b69eSJed Brown PETSC_EXTERN PetscErrorCode DMShellSetCreateLocalVector(DM,PetscErrorCode (*)(DM,Vec*)); 15d3120a63SRichard Tran Mills PETSC_EXTERN PetscErrorCode DMShellSetGlobalToLocal(DM,PetscErrorCode (*)(DM,Vec,InsertMode,Vec),PetscErrorCode (*)(DM,Vec,InsertMode,Vec)); 16a94b16f6SRichard Tran Mills PETSC_EXTERN PetscErrorCode DMShellSetGlobalToLocalVecScatter(DM,VecScatter); 17d3120a63SRichard Tran Mills PETSC_EXTERN PetscErrorCode DMShellSetLocalToGlobal(DM,PetscErrorCode (*)(DM,Vec,InsertMode,Vec),PetscErrorCode (*)(DM,Vec,InsertMode,Vec)); 18a94b16f6SRichard Tran Mills PETSC_EXTERN PetscErrorCode DMShellSetLocalToGlobalVecScatter(DM,VecScatter); 19f3db62a7SRichard Tran Mills PETSC_EXTERN PetscErrorCode DMShellSetLocalToLocal(DM,PetscErrorCode (*)(DM,Vec,InsertMode,Vec),PetscErrorCode (*)(DM,Vec,InsertMode,Vec)); 20f3db62a7SRichard Tran Mills PETSC_EXTERN PetscErrorCode DMShellSetLocalToLocalVecScatter(DM,VecScatter); 21b412c318SBarry Smith PETSC_EXTERN PetscErrorCode DMShellSetCreateMatrix(DM,PetscErrorCode (*)(DM,Mat*)); 22f572501eSLawrence Mitchell PETSC_EXTERN PetscErrorCode DMShellSetCoarsen(DM,PetscErrorCode (*)(DM,MPI_Comm,DM*)); 231297d384SBoris Boutkov PETSC_EXTERN PetscErrorCode DMShellGetCoarsen(DM,PetscErrorCode (**)(DM,MPI_Comm,DM*)); 24f572501eSLawrence Mitchell PETSC_EXTERN PetscErrorCode DMShellSetRefine(DM,PetscErrorCode (*)(DM,MPI_Comm,DM*)); 251297d384SBoris Boutkov PETSC_EXTERN PetscErrorCode DMShellGetRefine(DM,PetscErrorCode (**)(DM,MPI_Comm,DM*)); 26f572501eSLawrence Mitchell PETSC_EXTERN PetscErrorCode DMShellSetCreateInterpolation(DM,PetscErrorCode (*)(DM,DM,Mat*,Vec*)); 271297d384SBoris Boutkov PETSC_EXTERN PetscErrorCode DMShellGetCreateInterpolation(DM,PetscErrorCode (**)(DM,DM,Mat*,Vec*)); 2842ac0407SBarry Smith PETSC_EXTERN PetscErrorCode DMShellSetCreateRestriction(DM, PetscErrorCode (*)(DM,DM,Mat*)); 291297d384SBoris Boutkov PETSC_EXTERN PetscErrorCode DMShellGetCreateRestriction(DM, PetscErrorCode (**)(DM,DM,Mat*)); 30f572501eSLawrence Mitchell PETSC_EXTERN PetscErrorCode DMShellSetCreateInjection(DM,PetscErrorCode (*)(DM,DM,Mat*)); 311297d384SBoris Boutkov PETSC_EXTERN PetscErrorCode DMShellGetCreateInjection(DM,PetscErrorCode (**)(DM,DM,Mat*)); 325e2259d5SLawrence Mitchell PETSC_EXTERN PetscErrorCode DMShellSetCreateFieldDecomposition(DM,PetscErrorCode (*)(DM,PetscInt*,char***,IS**,DM**)); 33e734121bSPatrick Farrell PETSC_EXTERN PetscErrorCode DMShellSetCreateDomainDecomposition(DM,PetscErrorCode (*)(DM,PetscInt*,char***,IS**,IS**,DM**)); 34eef9d6cdSPatrick Farrell PETSC_EXTERN PetscErrorCode DMShellSetCreateDomainDecompositionScatters(DM,PetscErrorCode (*)(DM,PetscInt,DM*,VecScatter**,VecScatter**,VecScatter**)); 35276c5506SMatthew G. Knepley PETSC_EXTERN PetscErrorCode DMShellSetCreateSubDM(DM,PetscErrorCode (*)(DM,PetscInt,const PetscInt[],IS*,DM*)); 361297d384SBoris Boutkov PETSC_EXTERN PetscErrorCode DMShellGetCreateSubDM(DM,PetscErrorCode (**)(DM,PetscInt,const PetscInt[],IS*,DM*)); 377a108d1dSBarry Smith PETSC_EXTERN PetscErrorCode DMGlobalToLocalBeginDefaultShell(DM,Vec,InsertMode,Vec); 387a108d1dSBarry Smith PETSC_EXTERN PetscErrorCode DMGlobalToLocalEndDefaultShell(DM,Vec,InsertMode,Vec); 39c5076b69SRichard Tran Mills PETSC_EXTERN PetscErrorCode DMLocalToGlobalBeginDefaultShell(DM,Vec,InsertMode,Vec); 40c5076b69SRichard Tran Mills PETSC_EXTERN PetscErrorCode DMLocalToGlobalEndDefaultShell(DM,Vec,InsertMode,Vec); 41f3db62a7SRichard Tran Mills PETSC_EXTERN PetscErrorCode DMLocalToLocalBeginDefaultShell(DM,Vec,InsertMode,Vec); 42f3db62a7SRichard Tran Mills PETSC_EXTERN PetscErrorCode DMLocalToLocalEndDefaultShell(DM,Vec,InsertMode,Vec); 43fe1899a2SJed Brown 44fe1899a2SJed Brown #endif 45