Lines Matching refs:p
11 PetscInt pStart, pEnd, p; in main() local
24 for (p = pStart; p < pEnd; p++) PetscCall(PetscSectionSetDof(section, p, 1)); in main()
26 for (p = pStart; p < pEnd; p++) PetscCall(PetscSectionSetDof(section, p, 2)); in main()
36 for (p = pStart; p < pEnd; ++p) { in main()
39 PetscCall(PetscSectionGetDof(section, p, &dof)); in main()
40 for (PetscInt d = 0; d < dof; ++d) val[d] = 100 * p + d; in main()
41 PetscCall(VecSetValuesSection(v, section, p, val, INSERT_VALUES)); in main()
45 for (p = pStart; p < pEnd; ++p) { in main()
49 PetscCall(PetscSectionGetDof(section, p, &dof)); in main()
50 PetscCall(VecGetValuesSection(v, section, p, &x)); in main()
51 …PetscCall(PetscPrintf(PETSC_COMM_SELF, "Point #%" PetscInt_FMT " %" PetscInt_FMT " dof\n", p, dof)… in main()