Lines Matching refs:label
8 DMLabel label, label2; in TestInsertion() local
13 PetscCall(DMLabelCreate(PETSC_COMM_SELF, "Test Label", &label)); in TestInsertion()
14 PetscCall(DMLabelSetDefaultValue(label, -100)); in TestInsertion()
15 for (i = 0; i < N; ++i) PetscCall(DMLabelSetValue(label, i, values[i % 5])); in TestInsertion()
20 PetscCall(DMLabelGetValue(label, i, &val)); in TestInsertion()
29 PetscCall(DMLabelGetStratumIS(label, values[v], &stratum)); in TestInsertion()
41 PetscCall(DMLabelGetValue(label, i, &val)); in TestInsertion()
45 PetscCall(DMLabelDuplicate(label, &label2)); in TestInsertion()
53 PetscCall(DMLabelDestroy(&label)); in TestInsertion()
118 DMLabel label; in TestEmptyStrata() local
122 PetscCall(DMPlexGetDepthLabel(dm, &label)); in TestEmptyStrata()
127 if (i < 2) PetscCall(DMLabelSetValue(label, i, 3)); in TestEmptyStrata()
128 else if (i < 13) PetscCall(DMLabelSetValue(label, i, 2)); in TestEmptyStrata()
130 if (i == 13) PetscCall(DMLabelAddStratum(label, 1)); in TestEmptyStrata()
131 PetscCall(DMLabelSetValue(label, i, 0)); in TestEmptyStrata()
135 PetscCall(DMLabelGetNumValues(label, &numValues)); in TestEmptyStrata()
137 for (v = numValues; v < maxValues; ++v) PetscCall(DMLabelAddStratum(label, v)); in TestEmptyStrata()
140 DMLabel label; in TestEmptyStrata() local
141 PetscCall(DMPlexGetDepthLabel(dm, &label)); in TestEmptyStrata()
142 PetscCall(DMLabelView(label, PETSC_VIEWER_STDOUT_(comm))); in TestEmptyStrata()
152 DMLabel label; in TestEmptyStrata() local
153 PetscCall(DMPlexGetDepthLabel(dm, &label)); in TestEmptyStrata()
154 PetscCall(DMLabelView(label, PETSC_VIEWER_STDOUT_(comm))); in TestEmptyStrata()
184 DMLabel label; in TestDistribution() local
199 PetscCall(DMGetLabel(dm, name, &label)); in TestDistribution()
201 for (c = cStart; c < cEnd; ++c) PetscCall(DMLabelSetValue(label, c, c)); in TestDistribution()
202 PetscCall(DMLabelView(label, PETSC_VIEWER_STDOUT_WORLD)); in TestDistribution()
212 PetscCall(DMGetLabel(dm, name, &label)); in TestDistribution()
213 PetscCall(DMLabelView(label, PETSC_VIEWER_STDOUT_WORLD)); in TestDistribution()