Lines Matching refs:sym

96   PetscSectionSym sym;  in PetscSectionCopy_Internal()  local
118 PetscCall(PetscSectionGetFieldSym(section, f, &sym)); in PetscSectionCopy_Internal()
119 PetscCall(PetscSectionSetFieldSym(newSection, f, sym)); in PetscSectionCopy_Internal()
125 PetscCall(PetscSectionGetSym(section, &sym)); in PetscSectionCopy_Internal()
126 PetscCall(PetscSectionSetSym(newSection, sym)); in PetscSectionCopy_Internal()
2043 PetscSectionSym sym; in PetscSectionCreateSubsection() local
2053 PetscCall(PetscSectionGetFieldSym(s, fields[f], &sym)); in PetscSectionCreateSubsection()
2054 PetscCall(PetscSectionSetFieldSym(*subs, f, sym)); in PetscSectionCreateSubsection()
2135 PetscSectionSym sym; in PetscSectionCreateComponentSubsection() local
2151 PetscCall(PetscSectionGetFieldSym(s, 0, &sym)); in PetscSectionCreateComponentSubsection()
2152 PetscCall(PetscSectionSetFieldSym(*subs, 0, sym)); in PetscSectionCreateComponentSubsection()
2482 if (s->sym) { in PetscSectionView_ASCII()
2484 PetscCall(PetscSectionSymView(s->sym, viewer)); in PetscSectionView_ASCII()
2800 PetscCall(PetscSectionSymDestroy(&s->sym)); in PetscSectionReset()
3433 PetscErrorCode PetscSectionSymCreate(MPI_Comm comm, PetscSectionSym *sym) in PetscSectionSymCreate() argument
3436 PetscAssertPointer(sym, 2); in PetscSectionSymCreate()
3439 …PetscCall(PetscHeaderCreate(*sym, PETSC_SECTION_SYM_CLASSID, "PetscSectionSym", "Section Symmetry"… in PetscSectionSymCreate()
3456 PetscErrorCode PetscSectionSymSetType(PetscSectionSym sym, PetscSectionSymType method) in PetscSectionSymSetType() argument
3462 PetscValidHeaderSpecific(sym, PETSC_SECTION_SYM_CLASSID, 1); in PetscSectionSymSetType()
3463 PetscCall(PetscObjectTypeCompare((PetscObject)sym, method, &match)); in PetscSectionSymSetType()
3467 …PetscCheck(r, PetscObjectComm((PetscObject)sym), PETSC_ERR_ARG_UNKNOWN_TYPE, "Unknown PetscSection… in PetscSectionSymSetType()
3468 PetscTryTypeMethod(sym, destroy); in PetscSectionSymSetType()
3469 sym->ops->destroy = NULL; in PetscSectionSymSetType()
3471 PetscCall((*r)(sym)); in PetscSectionSymSetType()
3472 PetscCall(PetscObjectChangeTypeName((PetscObject)sym, method)); in PetscSectionSymSetType()
3491 PetscErrorCode PetscSectionSymGetType(PetscSectionSym sym, PetscSectionSymType *type) in PetscSectionSymGetType() argument
3494 PetscValidHeaderSpecific(sym, PETSC_SECTION_SYM_CLASSID, 1); in PetscSectionSymGetType()
3496 *type = ((PetscObject)sym)->type_name; in PetscSectionSymGetType()
3536 PetscErrorCode PetscSectionSymDestroy(PetscSectionSym *sym) in PetscSectionSymDestroy() argument
3541 if (!*sym) PetscFunctionReturn(PETSC_SUCCESS); in PetscSectionSymDestroy()
3542 PetscValidHeaderSpecific(*sym, PETSC_SECTION_SYM_CLASSID, 1); in PetscSectionSymDestroy()
3543 if (--((PetscObject)*sym)->refct > 0) { in PetscSectionSymDestroy()
3544 *sym = NULL; in PetscSectionSymDestroy()
3547 PetscTryTypeMethod(*sym, destroy); in PetscSectionSymDestroy()
3548 …PetscCheck(!(*sym)->workout, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONGSTATE, "Work array still checked … in PetscSectionSymDestroy()
3549 for (link = (*sym)->workin; link; link = next) { in PetscSectionSymDestroy()
3556 (*sym)->workin = NULL; in PetscSectionSymDestroy()
3557 PetscCall(PetscHeaderDestroy(sym)); in PetscSectionSymDestroy()
3574 PetscErrorCode PetscSectionSymView(PetscSectionSym sym, PetscViewer viewer) in PetscSectionSymView() argument
3577 PetscValidHeaderSpecific(sym, PETSC_SECTION_SYM_CLASSID, 1); in PetscSectionSymView()
3578 if (!viewer) PetscCall(PetscViewerASCIIGetStdout(PetscObjectComm((PetscObject)sym), &viewer)); in PetscSectionSymView()
3580 PetscCheckSameComm(sym, 1, viewer, 2); in PetscSectionSymView()
3581 PetscCall(PetscObjectPrintClassNamePrefixType((PetscObject)sym, viewer)); in PetscSectionSymView()
3582 PetscTryTypeMethod(sym, view, viewer); in PetscSectionSymView()
3599 PetscErrorCode PetscSectionSetSym(PetscSection section, PetscSectionSym sym) in PetscSectionSetSym() argument
3603 PetscCall(PetscSectionSymDestroy(&section->sym)); in PetscSectionSetSym()
3604 if (sym) { in PetscSectionSetSym()
3605 PetscValidHeaderSpecific(sym, PETSC_SECTION_SYM_CLASSID, 2); in PetscSectionSetSym()
3606 PetscCheckSameComm(section, 1, sym, 2); in PetscSectionSetSym()
3607 PetscCall(PetscObjectReference((PetscObject)sym)); in PetscSectionSetSym()
3609 section->sym = sym; in PetscSectionSetSym()
3628 PetscErrorCode PetscSectionGetSym(PetscSection section, PetscSectionSym *sym) in PetscSectionGetSym() argument
3632 *sym = section->sym; in PetscSectionGetSym()
3650 PetscErrorCode PetscSectionSetFieldSym(PetscSection section, PetscInt field, PetscSectionSym sym) in PetscSectionSetFieldSym() argument
3655 PetscCall(PetscSectionSetSym(section->field[field], sym)); in PetscSectionSetFieldSym()
3675 PetscErrorCode PetscSectionGetFieldSym(PetscSection section, PetscInt field, PetscSectionSym *sym) in PetscSectionGetFieldSym() argument
3680 *sym = section->field[field]->sym; in PetscSectionGetFieldSym()
3757 PetscSectionSym sym; in PetscSectionGetPointSyms() local
3764 sym = section->sym; in PetscSectionGetPointSyms()
3765 if (sym && (perms || rots)) { in PetscSectionGetPointSyms()
3768 if (sym->workin) { in PetscSectionGetPointSyms()
3769 link = sym->workin; in PetscSectionGetPointSyms()
3770 sym->workin = sym->workin->next; in PetscSectionGetPointSyms()
3781 link->next = sym->workout; in PetscSectionGetPointSyms()
3782 sym->workout = link; in PetscSectionGetPointSyms()
3785 PetscUseTypeMethod(sym, getpoints, section, numPoints, points, link->perms, link->rots); in PetscSectionGetPointSyms()
3812 PetscSectionSym sym; in PetscSectionRestorePointSyms() local
3816 sym = section->sym; in PetscSectionRestorePointSyms()
3817 if (sym && (perms || rots)) { in PetscSectionRestorePointSyms()
3820 for (p = &sym->workout; (link = *p); p = &link->next) { in PetscSectionRestorePointSyms()
3823 link->next = sym->workin; in PetscSectionRestorePointSyms()
3824 sym->workin = link; in PetscSectionRestorePointSyms()
3914 PetscErrorCode PetscSectionSymCopy(PetscSectionSym sym, PetscSectionSym nsym) in PetscSectionSymCopy() argument
3917 PetscValidHeaderSpecific(sym, PETSC_SECTION_SYM_CLASSID, 1); in PetscSectionSymCopy()
3919 PetscTryTypeMethod(sym, copy, nsym); in PetscSectionSymCopy()
3939 PetscErrorCode PetscSectionSymDistribute(PetscSectionSym sym, PetscSF migrationSF, PetscSectionSym … in PetscSectionSymDistribute() argument
3942 PetscValidHeaderSpecific(sym, PETSC_SECTION_SYM_CLASSID, 1); in PetscSectionSymDistribute()
3945 PetscTryTypeMethod(sym, distribute, migrationSF, dsym); in PetscSectionSymDistribute()