Lines Matching refs:numCols
249 PetscInt dim, pStart, pEnd, numDof, globalOffStart, globalOffEnd, numCols, adjSize; in DMPlexCreateAdjacencySection_Static() local
624 PetscCall(PetscSectionGetStorageSize(sectionAdj, &numCols)); in DMPlexCreateAdjacencySection_Static()
625 PetscCall(PetscMalloc1(numCols, &cols)); in DMPlexCreateAdjacencySection_Static()
718 PetscInt numCols, cStart, c; in DMPlexUpdateAllocation_Static() local
720 PetscCall(PetscSectionGetDof(sectionAdj, r, &numCols)); in DMPlexUpdateAllocation_Static()
722 for (c = cStart; c < cStart + numCols; ++c) { in DMPlexUpdateAllocation_Static()
737 PetscInt numCols, cStart, c; in DMPlexUpdateAllocation_Static() local
739 PetscCall(PetscSectionGetDof(sectionAdj, row, &numCols)); in DMPlexUpdateAllocation_Static()
741 for (c = cStart; c < cStart + numCols; ++c) { in DMPlexUpdateAllocation_Static()
782 PetscInt numCols, cStart; in DMPlexFillMatrix_Static() local
784 PetscCall(PetscSectionGetDof(sectionAdj, r, &numCols)); in DMPlexFillMatrix_Static()
786 PetscCall(MatSetValues(A, 1, &r, numCols, &cols[cStart], values, INSERT_VALUES)); in DMPlexFillMatrix_Static()
791 PetscInt numCols, cStart; in DMPlexFillMatrix_Static() local
793 PetscCall(PetscSectionGetDof(sectionAdj, r, &numCols)); in DMPlexFillMatrix_Static()
795 PetscCall(MatSetValues(A, 1, &r, numCols, &cols[cStart], values, INSERT_VALUES)); in DMPlexFillMatrix_Static()