Lines Matching refs:ncell
1731 PetscInt pStart, pEnd, ncell, offset, c, i, j; in PCPatchCreateMatrix_Private() local
1741 PetscCall(PetscSectionGetDof(patch->cellCounts, point, &ncell)); in PCPatchCreateMatrix_Private()
1753 for (c = 0; c < ncell; ++c) { in PCPatchCreateMatrix_Private()
1809 for (c = 0; c < ncell; ++c) { in PCPatchCreateMatrix_Private()
1850 for (c = 0; c < ncell; ++c) { in PCPatchCreateMatrix_Private()
1935 PetscInt ncell, offset, pStart, pEnd; in PCPatchComputeFunction_Internal() local
1948 PetscCall(PetscSectionGetDof(patch->cellCounts, point, &ncell)); in PCPatchComputeFunction_Internal()
1950 if (ncell <= 0) { in PCPatchComputeFunction_Internal()
1956 …PetscCall(ISCreateGeneral(PETSC_COMM_SELF, ncell, cellsArray + offset, PETSC_USE_POINTER, &patch->… in PCPatchComputeFunction_Internal()
1957 …PetscCallBack("PCPatch callback", patch->usercomputef(pc, point, x, F, patch->cellIS, ncell * patc… in PCPatchComputeFunction_Internal()
2018 PetscInt ncell, offset, pStart, pEnd, numIntFacets, intFacetOffset; in PCPatchComputeOperator_Internal() local
2037 PetscCall(PetscSectionGetDof(patch->cellCounts, point, &ncell)); in PCPatchComputeOperator_Internal()
2039 if (ncell <= 0) { in PCPatchComputeOperator_Internal()
2050 for (i = 0; i < ncell; i++) { in PCPatchComputeOperator_Internal()
2061 …PetscCall(ISCreateGeneral(PETSC_COMM_SELF, ncell, cellsArray + offset, PETSC_USE_POINTER, &patch->… in PCPatchComputeOperator_Internal()
2063 …patch->usercomputeop(pc, point, x, mat, patch->cellIS, ncell * patch->totalDofsPerCell, dofsArray … in PCPatchComputeOperator_Internal()
2208 PetscInt ncell, offset; in PCPatchPrecomputePatchTensors_Private() local
2218 PetscCall(ISGetSize(patch->cells, &ncell)); in PCPatchPrecomputePatchTensors_Private()
2219 if (!ncell) { /* No cells to assemble over -> skip */ in PCPatchPrecomputePatchTensors_Private()
2237 PetscCall(PetscSectionGetDof(patch->cellCounts, i, &ncell)); in PCPatchPrecomputePatchTensors_Private()
2239 if (ncell <= 0) continue; in PCPatchPrecomputePatchTensors_Private()
2240 for (j = 0; j < ncell; j++) PetscCall(PetscHSetIAdd(cells, cellsArray[offset + j])); in PCPatchPrecomputePatchTensors_Private()
2243 PetscCall(PetscHSetIGetSize(cells, &ncell)); in PCPatchPrecomputePatchTensors_Private()
2244 PetscCall(PetscMalloc1(ncell, &allCells)); in PCPatchPrecomputePatchTensors_Private()
2256 … PetscCall(ISCreateGeneral(PETSC_COMM_SELF, ncell, allCells, PETSC_OWN_POINTER, &patch->allCells)); in PCPatchPrecomputePatchTensors_Private()
2258 PetscCall(ISGetSize(patch->allCells, &ncell)); in PCPatchPrecomputePatchTensors_Private()
2260 PetscCall(VecCreateSeq(PETSC_COMM_SELF, ncell * ndof * ndof, &patch->cellMats)); in PCPatchPrecomputePatchTensors_Private()
2265 …PetscCall(MatCreateShell(PETSC_COMM_SELF, ncell * ndof, ncell * ndof, ncell * ndof, ncell * ndof, … in PCPatchPrecomputePatchTensors_Private()
2267 PetscCall(ISGetSize(patch->allCells, &ncell)); in PCPatchPrecomputePatchTensors_Private()
2268 PetscCall(ISCreateStride(PETSC_COMM_SELF, ndof * ncell, 0, 1, &dofMap)); in PCPatchPrecomputePatchTensors_Private()
2271 PetscCall(ISCreateGeneral(PETSC_COMM_SELF, ncell, cellsArray, PETSC_USE_POINTER, &cellIS)); in PCPatchPrecomputePatchTensors_Private()
2273 …PetscCallBack("PCPatch callback", patch->usercomputeop(pc, -1, NULL, vecMat, cellIS, ndof * ncell,… in PCPatchPrecomputePatchTensors_Private()