Lines Matching refs:label0
49 PetscErrorCode CheckLabelsSame(DMLabel label0, DMLabel label1) in CheckLabelsSame() argument
56 PetscCall(PetscObjectGetName((PetscObject)label0, &name0)); in CheckLabelsSame()
58 PetscCall(DMLabelCompare(PETSC_COMM_WORLD, label0, label1, &same, &msg)); in CheckLabelsSame()
62 PetscCall(DMLabelCompare(PETSC_COMM_WORLD, label0, label1, NULL, NULL)); in CheckLabelsSame()
67 PetscErrorCode CheckLabelsNotSame(DMLabel label0, DMLabel label1) in CheckLabelsNotSame() argument
74 PetscCall(PetscObjectGetName((PetscObject)label0, &name0)); in CheckLabelsNotSame()
76 PetscCall(DMLabelCompare(PETSC_COMM_WORLD, label0, label1, &same, &msg)); in CheckLabelsNotSame()
179 DMLabel label0, label1, label2, label3; in main() local
184 PetscCall(DMGetLabel(dm, "label0", &label0)); in main()
191 PetscCall(DMLabelSetValue(label0, p, 1)); in main()
195 PetscCall(DMLabelDuplicate(label0, &label2)); in main()
211 DMLabel label0, label1, label2, label3; in main() local
215 PetscCall(DMGetLabel(dm, "label0", &label0)); in main()
220 PetscCall(CheckLabelsNotSame(label0, label1)); in main()
221 PetscCall(CheckLabelsSame(label0, label2)); in main()
324 DMLabel label0, label1, label2; in main() local
325 PetscCall(DMGetLabel(dm, "label0", &label0)); in main()
327 PetscCheck(label0, PETSC_COMM_WORLD, PETSC_ERR_PLIB, "label0 must not be NULL now"); in main()
331 PetscCall(DMRemoveLabelBySelf(dm, &label0, PETSC_TRUE)); in main()
332 PetscCall(DMGetLabel(dm, "label0", &label0)); in main()
334 PetscCheck(!label0, PETSC_COMM_WORLD, PETSC_ERR_PLIB, "label0 must be NULL now"); in main()