xref: /petsc/src/binding/petsc4py/src/petsc4py/PETSc/petscds.pxi (revision 552edb6364df478b294b3111f33a8f37ca096b20)
1cdef extern from * nogil:
2
3    ctypedef const char* PetscDSType
4    PetscDSType PETSCDSBASIC
5
6    PetscErrorCode PetscDSCreate(MPI_Comm, PetscDS*)
7    PetscErrorCode PetscDSDestroy(PetscDS*)
8    PetscErrorCode PetscDSView(PetscDS, PetscViewer)
9    PetscErrorCode PetscDSSetType(PetscDS, PetscDSType)
10    PetscErrorCode PetscDSGetType(PetscDS, PetscDSType*)
11    PetscErrorCode PetscDSSetFromOptions(PetscDS)
12    PetscErrorCode PetscDSSetUp(PetscDS)
13
14    PetscErrorCode PetscDSGetHeightSubspace(PetscDS, PetscInt, PetscDS*)
15    PetscErrorCode PetscDSGetSpatialDimension(PetscDS, PetscInt*)
16    PetscErrorCode PetscDSGetCoordinateDimension(PetscDS, PetscInt*)
17    PetscErrorCode PetscDSSetCoordinateDimension(PetscDS, PetscInt)
18    PetscErrorCode PetscDSGetNumFields(PetscDS, PetscInt*)
19    PetscErrorCode PetscDSGetTotalDimension(PetscDS, PetscInt*)
20    PetscErrorCode PetscDSGetTotalComponents(PetscDS, PetscInt*)
21    PetscErrorCode PetscDSGetFieldIndex(PetscDS, PetscObject, PetscInt*)
22    PetscErrorCode PetscDSGetFieldSize(PetscDS, PetscInt, PetscInt*)
23    PetscErrorCode PetscDSGetFieldOffset(PetscDS, PetscInt, PetscInt*)
24    PetscErrorCode PetscDSGetDimensions(PetscDS, PetscInt*[])
25    PetscErrorCode PetscDSGetComponents(PetscDS, PetscInt*[])
26    PetscErrorCode PetscDSGetComponentOffset(PetscDS, PetscInt, PetscInt*)
27    PetscErrorCode PetscDSGetComponentOffsets(PetscDS, PetscInt*[])
28    PetscErrorCode PetscDSGetComponentDerivativeOffsets(PetscDS, PetscInt*[])
29
30    PetscErrorCode PetscDSGetDiscretization(PetscDS, PetscInt, PetscObject*)
31    PetscErrorCode PetscDSSetDiscretization(PetscDS, PetscInt, PetscObject)
32    PetscErrorCode PetscDSAddDiscretization(PetscDS, PetscObject)
33    PetscErrorCode PetscDSGetImplicit(PetscDS, PetscInt, PetscBool*)
34    PetscErrorCode PetscDSSetImplicit(PetscDS, PetscInt, PetscBool)
35