Lines Matching refs:sym

2673 static PetscErrorCode PetscSectionSymLabelReset(PetscSectionSym sym)  in PetscSectionSymLabelReset()  argument
2676 PetscSectionSym_Label *sl = (PetscSectionSym_Label *)sym->data; in PetscSectionSymLabelReset()
2703 static PetscErrorCode PetscSectionSymDestroy_Label(PetscSectionSym sym) in PetscSectionSymDestroy_Label() argument
2706 PetscCall(PetscSectionSymLabelReset(sym)); in PetscSectionSymDestroy_Label()
2707 PetscCall(PetscFree(sym->data)); in PetscSectionSymDestroy_Label()
2711 static PetscErrorCode PetscSectionSymView_Label(PetscSectionSym sym, PetscViewer viewer) in PetscSectionSymView_Label() argument
2713 PetscSectionSym_Label *sl = (PetscSectionSym_Label *)sym->data; in PetscSectionSymView_Label()
2803 PetscErrorCode PetscSectionSymLabelSetLabel(PetscSectionSym sym, DMLabel label) in PetscSectionSymLabelSetLabel() argument
2808 PetscValidHeaderSpecific(sym, PETSC_SECTION_SYM_CLASSID, 1); in PetscSectionSymLabelSetLabel()
2809 sl = (PetscSectionSym_Label *)sym->data; in PetscSectionSymLabelSetLabel()
2810 if (sl->label && sl->label != label) PetscCall(PetscSectionSymLabelReset(sym)); in PetscSectionSymLabelSetLabel()
2845 PetscErrorCode PetscSectionSymLabelGetStratum(PetscSectionSym sym, PetscInt stratum, PetscInt *size… in PetscSectionSymLabelGetStratum() argument
2852 PetscValidHeaderSpecific(sym, PETSC_SECTION_SYM_CLASSID, 1); in PetscSectionSymLabelGetStratum()
2853 sl = (PetscSectionSym_Label *)sym->data; in PetscSectionSymLabelGetStratum()
2854 …PetscCheck(sl->label, PetscObjectComm((PetscObject)sym), PETSC_ERR_ARG_WRONGSTATE, "No label set y… in PetscSectionSymLabelGetStratum()
2861 …PetscCheck(i <= sl->numStrata, PetscObjectComm((PetscObject)sym), PETSC_ERR_ARG_OUTOFRANGE, "Strat… in PetscSectionSymLabelGetStratum()
2904 PetscErrorCode PetscSectionSymLabelSetStratum(PetscSectionSym sym, PetscInt stratum, PetscInt size,… in PetscSectionSymLabelSetStratum() argument
2911 PetscValidHeaderSpecific(sym, PETSC_SECTION_SYM_CLASSID, 1); in PetscSectionSymLabelSetStratum()
2912 sl = (PetscSectionSym_Label *)sym->data; in PetscSectionSymLabelSetStratum()
2913 …PetscCheck(sl->label, PetscObjectComm((PetscObject)sym), PETSC_ERR_ARG_WRONGSTATE, "No label set y… in PetscSectionSymLabelSetStratum()
2920 …PetscCheck(i <= sl->numStrata, PetscObjectComm((PetscObject)sym), PETSC_ERR_ARG_OUTOFRANGE, "Strat… in PetscSectionSymLabelSetStratum()
2957 static PetscErrorCode PetscSectionSymGetPoints_Label(PetscSectionSym sym, PetscSection section, Pet… in PetscSectionSymGetPoints_Label() argument
2964 sl = (PetscSectionSym_Label *)sym->data; in PetscSectionSymGetPoints_Label()
2992 static PetscErrorCode PetscSectionSymCopy_Label(PetscSectionSym sym, PetscSectionSym nsym) in PetscSectionSymCopy_Label() argument
3009 … PetscCall(PetscSectionSymLabelGetStratum(sym, val, &size, &minOrient, &maxOrient, &perms, &rots)); in PetscSectionSymCopy_Label()
3016 static PetscErrorCode PetscSectionSymDistribute_Label(PetscSectionSym sym, PetscSF migrationSF, Pet… in PetscSectionSymDistribute_Label() argument
3018 PetscSectionSym_Label *sl = (PetscSectionSym_Label *)sym->data; in PetscSectionSymDistribute_Label()
3023 PetscCall(PetscSectionSymCreateLabel(PetscObjectComm((PetscObject)sym), dlabel, dsym)); in PetscSectionSymDistribute_Label()
3025 PetscCall(PetscSectionSymCopy(sym, *dsym)); in PetscSectionSymDistribute_Label()
3029 PetscErrorCode PetscSectionSymCreate_Label(PetscSectionSym sym) in PetscSectionSymCreate_Label() argument
3035 sym->ops->getpoints = PetscSectionSymGetPoints_Label; in PetscSectionSymCreate_Label()
3036 sym->ops->distribute = PetscSectionSymDistribute_Label; in PetscSectionSymCreate_Label()
3037 sym->ops->copy = PetscSectionSymCopy_Label; in PetscSectionSymCreate_Label()
3038 sym->ops->view = PetscSectionSymView_Label; in PetscSectionSymCreate_Label()
3039 sym->ops->destroy = PetscSectionSymDestroy_Label; in PetscSectionSymCreate_Label()
3040 sym->data = (void *)sl; in PetscSectionSymCreate_Label()
3060 PetscErrorCode PetscSectionSymCreateLabel(MPI_Comm comm, DMLabel label, PetscSectionSym *sym) in PetscSectionSymCreateLabel() argument
3064 PetscCall(PetscSectionSymCreate(comm, sym)); in PetscSectionSymCreateLabel()
3065 PetscCall(PetscSectionSymSetType(*sym, PETSCSECTIONSYMLABEL)); in PetscSectionSymCreateLabel()
3066 PetscCall(PetscSectionSymLabelSetLabel(*sym, label)); in PetscSectionSymCreateLabel()