Lines Matching refs:nc
88 PetscInt nc, rstart, *ccols, maxnc; in DMCreateMatrix_Composite_AIJ() local
104 PetscCall(MatGetRow(Atmp, rstart + i, &nc, NULL, NULL)); in DMCreateMatrix_Composite_AIJ()
105 maxnc = PetscMax(nc, maxnc); in DMCreateMatrix_Composite_AIJ()
106 PetscCall(MatRestoreRow(Atmp, rstart + i, &nc, NULL, NULL)); in DMCreateMatrix_Composite_AIJ()
110 PetscCall(MatGetRow(Atmp, rstart + i, &nc, &cols, NULL)); in DMCreateMatrix_Composite_AIJ()
112 for (j = 0; j < nc; j++) { in DMCreateMatrix_Composite_AIJ()
117 PetscCall(MatPreallocateSet(com->rstart + next->rstart + i, nc, ccols, dnz, onz)); in DMCreateMatrix_Composite_AIJ()
118 PetscCall(MatRestoreRow(Atmp, rstart + i, &nc, &cols, NULL)); in DMCreateMatrix_Composite_AIJ()
135 PetscInt nc, rstart, row, maxnc, *ccols; in DMCreateMatrix_Composite_AIJ() local
151 PetscCall(MatGetRow(Atmp, rstart + i, &nc, NULL, NULL)); in DMCreateMatrix_Composite_AIJ()
152 maxnc = PetscMax(nc, maxnc); in DMCreateMatrix_Composite_AIJ()
153 PetscCall(MatRestoreRow(Atmp, rstart + i, &nc, NULL, NULL)); in DMCreateMatrix_Composite_AIJ()
157 PetscCall(MatGetRow(Atmp, rstart + i, &nc, &cols, &values)); in DMCreateMatrix_Composite_AIJ()
158 for (j = 0; j < nc; j++) { in DMCreateMatrix_Composite_AIJ()
164 PetscCall(MatSetValues(*J, 1, &row, nc, ccols, values, INSERT_VALUES)); in DMCreateMatrix_Composite_AIJ()
165 PetscCall(MatRestoreRow(Atmp, rstart + i, &nc, &cols, &values)); in DMCreateMatrix_Composite_AIJ()