Lines Matching refs:nodesPerCell

504 …tionInfo(PC pc, PetscInt nsubspaces, DM *dms, PetscInt *bs, PetscInt *nodesPerCell, const PetscInt…  in PCPatchSetDiscretisationInfo()  argument
519 PetscCall(PetscMalloc1(nsubspaces, &patch->nodesPerCell)); in PCPatchSetDiscretisationInfo()
530 patch->nodesPerCell[i] = nodesPerCell[i]; in PCPatchSetDiscretisationInfo()
531 patch->totalDofsPerCell += nodesPerCell[i] * bs[i]; in PCPatchSetDiscretisationInfo()
532 PetscCall(PetscMalloc1((cEnd - cStart) * nodesPerCell[i], &patch->cellNodeMap[i])); in PCPatchSetDiscretisationInfo()
533 …for (j = 0; j < (cEnd - cStart) * nodesPerCell[i]; ++j) patch->cellNodeMap[i][j] = cellNodeMap[i][… in PCPatchSetDiscretisationInfo()
547 static PetscErrorCode PCPatchSetDiscretisationInfoCombined(PC pc, DM dm, PetscInt *nodesPerCell, co… in PCPatchSetDiscretisationInfoCombined() argument
558 PetscCall(PetscMalloc1(patch->nsubspaces, &patch->nodesPerCell)); in PCPatchSetDiscretisationInfoCombined()
567 patch->nodesPerCell[i] = nodesPerCell[i]; in PCPatchSetDiscretisationInfoCombined()
568 patch->totalDofsPerCell += nodesPerCell[i]; in PCPatchSetDiscretisationInfoCombined()
569 PetscCall(PetscMalloc1((cEnd - cStart) * nodesPerCell[i], &patch->cellNodeMap[i])); in PCPatchSetDiscretisationInfoCombined()
570 …for (j = 0; j < (cEnd - cStart) * nodesPerCell[i]; ++j) patch->cellNodeMap[i][j] = cellNodeMap[i][… in PCPatchSetDiscretisationInfoCombined()
1368 PetscInt nodesPerCell = patch->nodesPerCell[k]; in PCPatchCreateCellPatchDiscretisationInfo() local
1384 for (j = 0; j < nodesPerCell; ++j) { in PCPatchCreateCellPatchDiscretisationInfo()
1386 const PetscInt globalDof = cellNodeMap[cell * nodesPerCell + j] * bs + subspaceOffset; in PCPatchCreateCellPatchDiscretisationInfo()
1487 PetscInt nodesPerCell = patch->nodesPerCell[k]; in PCPatchCreateCellPatchDiscretisationInfo() local
1498 for (j = 0; j < nodesPerCell; ++j) { in PCPatchCreateCellPatchDiscretisationInfo()
1500 … const PetscInt globalDof = cellNodeMap[cell * nodesPerCell + j] * bs + l + subspaceOffset; in PCPatchCreateCellPatchDiscretisationInfo()
1589 PetscInt nodesPerCell = patch->nodesPerCell[k]; in PCPatchCreateCellPatchDiscretisationInfo() local
1593 for (j = 0; j < nodesPerCell; ++j) { in PCPatchCreateCellPatchDiscretisationInfo()
1595 … const PetscInt globalDof = cellNodeMap[cell * nodesPerCell + j] * bs + l + subspaceOffset; in PCPatchCreateCellPatchDiscretisationInfo()
2908 PetscCall(PetscFree(patch->nodesPerCell)); in PCReset_PATCH()