Lines Matching refs:totalDofsPerCell
524 patch->totalDofsPerCell = 0; in PCPatchSetDiscretisationInfo()
531 patch->totalDofsPerCell += nodesPerCell[i] * bs[i]; in PCPatchSetDiscretisationInfo()
564 patch->totalDofsPerCell = 0; in PCPatchSetDiscretisationInfoCombined()
568 patch->totalDofsPerCell += nodesPerCell[i]; in PCPatchSetDiscretisationInfoCombined()
1200 PetscInt totalDofsPerCell = patch->totalDofsPerCell; in PCPatchCreateCellPatchDiscretisationInfo() local
1238 numDofs = numCells * totalDofsPerCell; in PCPatchCreateCellPatchDiscretisationInfo()
1754 const PetscInt *idx = dofsArray + (offset + c) * patch->totalDofsPerCell; in PCPatchCreateMatrix_Private()
1755 for (i = 0; i < patch->totalDofsPerCell; ++i) { in PCPatchCreateMatrix_Private()
1758 for (j = 0; j < patch->totalDofsPerCell; ++j) { in PCPatchCreateMatrix_Private()
1781 for (celli = 0; celli < patch->totalDofsPerCell; celli++) { in PCPatchCreateMatrix_Private()
1782 const PetscInt row = dofsArray[(offset + cell0) * patch->totalDofsPerCell + celli]; in PCPatchCreateMatrix_Private()
1784 for (cellj = 0; cellj < patch->totalDofsPerCell; cellj++) { in PCPatchCreateMatrix_Private()
1785 const PetscInt col = dofsArray[(offset + cell1) * patch->totalDofsPerCell + cellj]; in PCPatchCreateMatrix_Private()
1792 for (celli = 0; celli < patch->totalDofsPerCell; celli++) { in PCPatchCreateMatrix_Private()
1793 const PetscInt row = dofsArray[(offset + cell1) * patch->totalDofsPerCell + celli]; in PCPatchCreateMatrix_Private()
1795 for (cellj = 0; cellj < patch->totalDofsPerCell; cellj++) { in PCPatchCreateMatrix_Private()
1796 const PetscInt col = dofsArray[(offset + cell0) * patch->totalDofsPerCell + cellj]; in PCPatchCreateMatrix_Private()
1808 PetscCall(PetscCalloc1(patch->totalDofsPerCell * patch->totalDofsPerCell, &zeroes)); in PCPatchCreateMatrix_Private()
1810 const PetscInt *idx = &dofsArray[(offset + c) * patch->totalDofsPerCell]; in PCPatchCreateMatrix_Private()
1811 …PetscCall(MatSetValues(*mat, patch->totalDofsPerCell, idx, patch->totalDofsPerCell, idx, zeroes, I… in PCPatchCreateMatrix_Private()
1828 const PetscInt *cell0idx = &dofsArray[(offset + cell0) * patch->totalDofsPerCell]; in PCPatchCreateMatrix_Private()
1829 const PetscInt *cell1idx = &dofsArray[(offset + cell1) * patch->totalDofsPerCell]; in PCPatchCreateMatrix_Private()
1830 …PetscCall(MatSetValues(*mat, patch->totalDofsPerCell, cell0idx, patch->totalDofsPerCell, cell1idx,… in PCPatchCreateMatrix_Private()
1831 …PetscCall(MatSetValues(*mat, patch->totalDofsPerCell, cell1idx, patch->totalDofsPerCell, cell0idx,… in PCPatchCreateMatrix_Private()
1844 PetscCall(PetscCalloc1(patch->totalDofsPerCell * patch->totalDofsPerCell, &vals)); in PCPatchCreateMatrix_Private()
1851 const PetscInt *idx = dofsArray + (offset + c) * patch->totalDofsPerCell; in PCPatchCreateMatrix_Private()
1852 …PetscCall(MatSetValues(preallocator, patch->totalDofsPerCell, idx, patch->totalDofsPerCell, idx, v… in PCPatchCreateMatrix_Private()
1867 const PetscInt *cell0idx = &dofsArray[(offset + cell0) * patch->totalDofsPerCell]; in PCPatchCreateMatrix_Private()
1868 const PetscInt *cell1idx = &dofsArray[(offset + cell1) * patch->totalDofsPerCell]; in PCPatchCreateMatrix_Private()
1869 …PetscCall(MatSetValues(preallocator, patch->totalDofsPerCell, cell0idx, patch->totalDofsPerCell, c… in PCPatchCreateMatrix_Private()
1870 …PetscCall(MatSetValues(preallocator, patch->totalDofsPerCell, cell1idx, patch->totalDofsPerCell, c… in PCPatchCreateMatrix_Private()
1957 …IS, ncell * patch->totalDofsPerCell, dofsArray + offset * patch->totalDofsPerCell, dofsArrayWithAl… in PCPatchComputeFunction_Internal()
2046 PetscInt ndof = patch->totalDofsPerCell; in PCPatchComputeOperator_Internal()
2063 …atch->totalDofsPerCell, dofsArray + offset * patch->totalDofsPerCell, PetscSafePointerPlusOffset(d… in PCPatchComputeOperator_Internal()
2086 PetscCall(PetscMalloc1(2 * patch->totalDofsPerCell * numIntFacets, &facetDofs)); in PCPatchComputeOperator_Internal()
2087 …if (dofsArrayWithAll) PetscCall(PetscMalloc1(2 * patch->totalDofsPerCell * numIntFacets, &facetDof… in PCPatchComputeOperator_Internal()
2089 PetscInt nFacetDof = 2 * patch->totalDofsPerCell; in PCPatchComputeOperator_Internal()
2107 for (d = 0; d < patch->totalDofsPerCell; d++) { in PCPatchComputeOperator_Internal()
2108 facetDofs[idx] = dofsArray[(offset + cell) * patch->totalDofsPerCell + d]; in PCPatchComputeOperator_Internal()
2126 for (d = 0; d < patch->totalDofsPerCell; d++) { in PCPatchComputeOperator_Internal()
2127 facetDofs[idx] = dofsArray[(offset + cell) * patch->totalDofsPerCell + d]; in PCPatchComputeOperator_Internal()
2128 …ayWithAll) facetDofsWithAll[idx] = dofsArrayWithAll[(offset + cell) * patch->totalDofsPerCell + d]; in PCPatchComputeOperator_Internal()
2134 …uteopintfacet(pc, point, x, mat, facetIS, 2 * numIntFacets * patch->totalDofsPerCell, facetDofs, f… in PCPatchComputeOperator_Internal()
2213 const PetscInt ndof = patch->totalDofsPerCell; in PCPatchPrecomputePatchTensors_Private()