File: petscdmshell.h

package info (click to toggle)
petsc 3.22.5%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 516,740 kB
  • sloc: ansic: 814,333; cpp: 50,948; python: 37,416; f90: 17,187; javascript: 3,493; makefile: 3,198; sh: 1,502; xml: 619; objc: 445; java: 13; csh: 1
file content (42 lines) | stat: -rw-r--r-- 3,634 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#pragma once

#include <petscdm.h>

PETSC_EXTERN PetscErrorCode DMShellCreate(MPI_Comm, DM *);
PETSC_EXTERN PetscErrorCode DMShellSetContext(DM, void *);
PETSC_EXTERN PetscErrorCode DMShellGetContext(DM, void *);
PETSC_EXTERN PetscErrorCode DMShellSetDestroyContext(DM, PetscErrorCode (*)(void *));
PETSC_EXTERN PetscErrorCode DMShellSetMatrix(DM, Mat);
PETSC_EXTERN PetscErrorCode DMShellSetGlobalVector(DM, Vec);
PETSC_EXTERN PetscErrorCode DMShellGetGlobalVector(DM, Vec *);
PETSC_EXTERN PetscErrorCode DMShellSetLocalVector(DM, Vec);
PETSC_EXTERN PetscErrorCode DMShellSetCreateGlobalVector(DM, PetscErrorCode (*)(DM, Vec *));
PETSC_EXTERN PetscErrorCode DMShellSetCreateLocalVector(DM, PetscErrorCode (*)(DM, Vec *));
PETSC_EXTERN PetscErrorCode DMShellSetGlobalToLocal(DM, PetscErrorCode (*)(DM, Vec, InsertMode, Vec), PetscErrorCode (*)(DM, Vec, InsertMode, Vec));
PETSC_EXTERN PetscErrorCode DMShellSetGlobalToLocalVecScatter(DM, VecScatter);
PETSC_EXTERN PetscErrorCode DMShellSetLocalToGlobal(DM, PetscErrorCode (*)(DM, Vec, InsertMode, Vec), PetscErrorCode (*)(DM, Vec, InsertMode, Vec));
PETSC_EXTERN PetscErrorCode DMShellSetLocalToGlobalVecScatter(DM, VecScatter);
PETSC_EXTERN PetscErrorCode DMShellSetLocalToLocal(DM, PetscErrorCode (*)(DM, Vec, InsertMode, Vec), PetscErrorCode (*)(DM, Vec, InsertMode, Vec));
PETSC_EXTERN PetscErrorCode DMShellSetLocalToLocalVecScatter(DM, VecScatter);
PETSC_EXTERN PetscErrorCode DMShellSetCreateMatrix(DM, PetscErrorCode (*)(DM, Mat *));
PETSC_EXTERN PetscErrorCode DMShellSetCoarsen(DM, PetscErrorCode (*)(DM, MPI_Comm, DM *));
PETSC_EXTERN PetscErrorCode DMShellGetCoarsen(DM, PetscErrorCode (**)(DM, MPI_Comm, DM *));
PETSC_EXTERN PetscErrorCode DMShellSetRefine(DM, PetscErrorCode (*)(DM, MPI_Comm, DM *));
PETSC_EXTERN PetscErrorCode DMShellGetRefine(DM, PetscErrorCode (**)(DM, MPI_Comm, DM *));
PETSC_EXTERN PetscErrorCode DMShellSetCreateInterpolation(DM, PetscErrorCode (*)(DM, DM, Mat *, Vec *));
PETSC_EXTERN PetscErrorCode DMShellGetCreateInterpolation(DM, PetscErrorCode (**)(DM, DM, Mat *, Vec *));
PETSC_EXTERN PetscErrorCode DMShellSetCreateRestriction(DM, PetscErrorCode (*)(DM, DM, Mat *));
PETSC_EXTERN PetscErrorCode DMShellGetCreateRestriction(DM, PetscErrorCode (**)(DM, DM, Mat *));
PETSC_EXTERN PetscErrorCode DMShellSetCreateInjection(DM, PetscErrorCode (*)(DM, DM, Mat *));
PETSC_EXTERN PetscErrorCode DMShellGetCreateInjection(DM, PetscErrorCode (**)(DM, DM, Mat *));
PETSC_EXTERN PetscErrorCode DMShellSetCreateFieldDecomposition(DM, PetscErrorCode (*)(DM, PetscInt *, char ***, IS **, DM **));
PETSC_EXTERN PetscErrorCode DMShellSetCreateDomainDecomposition(DM, PetscErrorCode (*)(DM, PetscInt *, char ***, IS **, IS **, DM **));
PETSC_EXTERN PetscErrorCode DMShellSetCreateDomainDecompositionScatters(DM, PetscErrorCode (*)(DM, PetscInt, DM *, VecScatter **, VecScatter **, VecScatter **));
PETSC_EXTERN PetscErrorCode DMShellSetCreateSubDM(DM, PetscErrorCode (*)(DM, PetscInt, const PetscInt[], IS *, DM *));
PETSC_EXTERN PetscErrorCode DMShellGetCreateSubDM(DM, PetscErrorCode (**)(DM, PetscInt, const PetscInt[], IS *, DM *));
PETSC_EXTERN PetscErrorCode DMGlobalToLocalBeginDefaultShell(DM, Vec, InsertMode, Vec);
PETSC_EXTERN PetscErrorCode DMGlobalToLocalEndDefaultShell(DM, Vec, InsertMode, Vec);
PETSC_EXTERN PetscErrorCode DMLocalToGlobalBeginDefaultShell(DM, Vec, InsertMode, Vec);
PETSC_EXTERN PetscErrorCode DMLocalToGlobalEndDefaultShell(DM, Vec, InsertMode, Vec);
PETSC_EXTERN PetscErrorCode DMLocalToLocalBeginDefaultShell(DM, Vec, InsertMode, Vec);
PETSC_EXTERN PetscErrorCode DMLocalToLocalEndDefaultShell(DM, Vec, InsertMode, Vec);