Lines Matching refs:c

37   PetscInt cStart, cEnd, c;  in PetscDualSpaceRefinedSetCellSpaces_Refined()  local
45 for (c = 0; c < cEnd - cStart; c++) { in PetscDualSpaceRefinedSetCellSpaces_Refined()
46 PetscCall(PetscObjectReference((PetscObject)cellSpaces[c])); in PetscDualSpaceRefinedSetCellSpaces_Refined()
47 PetscCall(PetscDualSpaceDestroy(&sp->pointSpaces[c + cStart - pStart])); in PetscDualSpaceRefinedSetCellSpaces_Refined()
48 sp->pointSpaces[c + cStart - pStart] = cellSpaces[c]; in PetscDualSpaceRefinedSetCellSpaces_Refined()
66 PetscInt cStart, cEnd, c, spdim; in PetscDualSpaceSetUp_Refined() local
76 for (c = cStart; c < cEnd; c++) { in PetscDualSpaceSetUp_Refined()
77 if (sp->pointSpaces[c - pStart]) { in PetscDualSpaceSetUp_Refined()
79 …PetscCheck(sp->pointSpaces[c - pStart]->k == sp->k, PetscObjectComm((PetscObject)sp), PETSC_ERR_AR… in PetscDualSpaceSetUp_Refined()
80 …PetscCheck(sp->pointSpaces[c - pStart]->Nc == sp->Nc, PetscObjectComm((PetscObject)sp), PETSC_ERR_… in PetscDualSpaceSetUp_Refined()
81 PetscCall(DMPlexGetHeightStratum(sp->pointSpaces[c - pStart]->dm, 0, &ccStart, &ccEnd)); in PetscDualSpaceSetUp_Refined()
85 for (c = cStart; c < cEnd; c++) { in PetscDualSpaceSetUp_Refined()
86 if (sp->pointSpaces[c - pStart]) { in PetscDualSpaceSetUp_Refined()
89 PetscCall(PetscDualSpaceGetUniform(sp->pointSpaces[c - pStart], &cUniform)); in PetscDualSpaceSetUp_Refined()
92 if ((c > cStart) && sp->pointSpaces[c - pStart] != sp->pointSpaces[c - 1 - pStart]) break; in PetscDualSpaceSetUp_Refined()
94 if (c < cEnd) sp->uniform = PETSC_FALSE; in PetscDualSpaceSetUp_Refined()
99 for (c = hStart; c < hEnd; c++) { in PetscDualSpaceSetUp_Refined()
101 PetscDualSpace cspace = sp->pointSpaces[c - pStart]; in PetscDualSpaceSetUp_Refined()
106 PetscCall(DMPlexGetConeSize(dm, c, &coneSize)); in PetscDualSpaceSetUp_Refined()
107 PetscCall(DMPlexGetCone(dm, c, &cone)); in PetscDualSpaceSetUp_Refined()
134 PetscInt cStart, cEnd, c; in PetscDualSpaceRefinedView_Ascii() local
140 for (c = cStart; c < cEnd; c++) { in PetscDualSpaceRefinedView_Ascii()
141 if (!sp->pointSpaces[c - pStart]) { in PetscDualSpaceRefinedView_Ascii()
142 PetscCall(PetscViewerASCIIPrintf(viewer, "Cell space %" PetscInt_FMT " not set yet\n", c)); in PetscDualSpaceRefinedView_Ascii()
144 PetscCall(PetscViewerASCIIPrintf(viewer, "Cell space %" PetscInt_FMT ":ot set yet\n", c)); in PetscDualSpaceRefinedView_Ascii()
146 PetscCall(PetscDualSpaceView(sp->pointSpaces[c - pStart], viewer)); in PetscDualSpaceRefinedView_Ascii()