Lines Matching refs:p
44 PetscReal p; in TestSetup() local
47 PetscCall(PetscRandomGetValueReal(r, &p)); in TestSetup()
48 PetscCall(DMLabelGetValue(label, (PetscInt)p, &val)); in TestSetup()
51 PetscCall(DMLabelSetValue(label, (PetscInt)p, i % user->numStrata)); in TestSetup()
64 PetscInt p, n = 0; in TestLookup() local
67 for (p = pStart; p < pEnd; ++p) { in TestLookup()
71 PetscCall(DMLabelGetValue(label, p, &val)); in TestLookup()
72 PetscCall(DMLabelHasPoint(label, p, &has)); in TestLookup()
73 … does not match contains check %" PetscInt_FMT " for point %" PetscInt_FMT, val, (PetscInt)has, p); in TestLookup()
83 PetscInt pStart = user->pStart, pEnd = user->pEnd, p; in TestClear() local
88 for (p = pStart; p < pEnd; p++) { in TestClear()
92 PetscCall(DMLabelGetValue(label, p, &val)); in TestClear()
93 if (val != defaultValue) PetscCall(DMLabelClearValue(label, p, val)); in TestClear()
94 PetscCall(DMLabelGetValue(label, p, &val)); in TestClear()
95 PetscCall(DMLabelHasPoint(label, p, &hasPoint)); in TestClear()
96 … PetscInt_FMT " after clearing point %" PetscInt_FMT ", got %" PetscInt_FMT, defaultValue, p, val); in TestClear()
97 …(!hasPoint, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Label contains %" PetscInt_FMT " after clearing", p); in TestClear()