1# -------------------------------------------------------------------- 2 3cdef extern from * nogil: 4 5 PetscErrorCode PetscSectionCreate(MPI_Comm, PetscSection*) 6 PetscErrorCode PetscSectionClone(PetscSection, PetscSection*) 7 PetscErrorCode PetscSectionSetUp(PetscSection) 8 PetscErrorCode PetscSectionSetUpBC(PetscSection) 9 PetscErrorCode PetscSectionView(PetscSection, PetscViewer) 10 PetscErrorCode PetscSectionReset(PetscSection) 11 PetscErrorCode PetscSectionDestroy(PetscSection*) 12 13 PetscErrorCode PetscSectionGetNumFields(PetscSection, PetscInt*) 14 PetscErrorCode PetscSectionSetNumFields(PetscSection, PetscInt) 15 PetscErrorCode PetscSectionGetFieldName(PetscSection, PetscInt, const char*[]) 16 PetscErrorCode PetscSectionSetFieldName(PetscSection, PetscInt, const char[]) 17 PetscErrorCode PetscSectionGetFieldComponents(PetscSection, PetscInt, PetscInt*) 18 PetscErrorCode PetscSectionSetFieldComponents(PetscSection, PetscInt, PetscInt) 19 PetscErrorCode PetscSectionGetChart(PetscSection, PetscInt*, PetscInt*) 20 PetscErrorCode PetscSectionSetChart(PetscSection, PetscInt, PetscInt) 21 PetscErrorCode PetscSectionGetPermutation(PetscSection, PetscIS*) 22 PetscErrorCode PetscSectionSetPermutation(PetscSection, PetscIS) 23 PetscErrorCode PetscSectionGetDof(PetscSection, PetscInt, PetscInt*) 24 PetscErrorCode PetscSectionSetDof(PetscSection, PetscInt, PetscInt) 25 PetscErrorCode PetscSectionAddDof(PetscSection, PetscInt, PetscInt) 26 PetscErrorCode PetscSectionGetFieldDof(PetscSection, PetscInt, PetscInt, PetscInt*) 27 PetscErrorCode PetscSectionSetFieldDof(PetscSection, PetscInt, PetscInt, PetscInt) 28 PetscErrorCode PetscSectionAddFieldDof(PetscSection, PetscInt, PetscInt, PetscInt) 29 PetscErrorCode PetscSectionGetConstraintDof(PetscSection, PetscInt, PetscInt*) 30 PetscErrorCode PetscSectionSetConstraintDof(PetscSection, PetscInt, PetscInt) 31 PetscErrorCode PetscSectionAddConstraintDof(PetscSection, PetscInt, PetscInt) 32 PetscErrorCode PetscSectionGetFieldConstraintDof(PetscSection, PetscInt, PetscInt, PetscInt*) 33 PetscErrorCode PetscSectionSetFieldConstraintDof(PetscSection, PetscInt, PetscInt, PetscInt) 34 PetscErrorCode PetscSectionAddFieldConstraintDof(PetscSection, PetscInt, PetscInt, PetscInt) 35 PetscErrorCode PetscSectionGetConstraintIndices(PetscSection, PetscInt, const PetscInt**) 36 PetscErrorCode PetscSectionSetConstraintIndices(PetscSection, PetscInt, const PetscInt*) 37 PetscErrorCode PetscSectionGetFieldConstraintIndices(PetscSection, PetscInt, PetscInt, const PetscInt**) 38 PetscErrorCode PetscSectionSetFieldConstraintIndices(PetscSection, PetscInt, PetscInt, const PetscInt*) 39 PetscErrorCode PetscSectionGetMaxDof(PetscSection, PetscInt*) 40 PetscErrorCode PetscSectionGetStorageSize(PetscSection, PetscInt*) 41 PetscErrorCode PetscSectionGetConstrainedStorageSize(PetscSection, PetscInt*) 42 PetscErrorCode PetscSectionGetOffset(PetscSection, PetscInt, PetscInt*) 43 PetscErrorCode PetscSectionSetOffset(PetscSection, PetscInt, PetscInt) 44 PetscErrorCode PetscSectionGetFieldOffset(PetscSection, PetscInt, PetscInt, PetscInt*) 45 PetscErrorCode PetscSectionSetFieldOffset(PetscSection, PetscInt, PetscInt, PetscInt) 46 PetscErrorCode PetscSectionGetOffsetRange(PetscSection, PetscInt*, PetscInt*) 47 PetscErrorCode PetscSectionCreateGlobalSection(PetscSection, PetscSF, PetscBool, PetscBool, PetscBool, PetscSection*) 48 PetscErrorCode PetscSectionCreateSubsection(PetscSection, PetscInt, PetscInt[], PetscSection*) 49 PetscErrorCode PetscSectionCreateSubmeshSection(PetscSection, IS, PetscSection*) 50