Home
last modified time | relevance | path

Searched refs:ocols (Results 1 – 4 of 4) sorted by relevance

/petsc/src/dm/impls/da/
H A Dfdda.c1398 PetscInt m, dim, s, *cols = NULL, nc, cnt, maxcnt = 0, *ocols; in DMCreateMatrix_DA_1d_MPIAIJ_Fill() local
1417 PetscCall(PetscCalloc2(nx * nc, &cols, nx * nc, &ocols)); in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1427 ocols[cnt] = ((rank == 0) ? 0 : (s - i) * (ofill[j + 1] - ofill[j])); in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1430 if (size > 1) ocols[cnt] += (s - i) * (ofill[j + 1] - ofill[j]); in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1433 maxcnt = PetscMax(maxcnt, ocols[cnt] + cols[cnt]); in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1440 maxcnt = PetscMax(maxcnt, ocols[cnt] + cols[cnt]); in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1447 ocols[cnt] = ((rank == (size - 1)) ? 0 : (i - nx + s + 1) * (ofill[j + 1] - ofill[j])); in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1450 if (size > 1) ocols[cnt] += (i - nx + s + 1) * (ofill[j + 1] - ofill[j]); in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1453 maxcnt = PetscMax(maxcnt, ocols[cnt] + cols[cnt]); in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
1459 PetscCall(MatMPIAIJSetPreallocation(J, 0, cols, 0, ocols)); in DMCreateMatrix_DA_1d_MPIAIJ_Fill()
[all …]
/petsc/src/mat/impls/maij/
H A Dmaij.c926 PetscInt *oicols = NULL, *icols = NULL, ncols, *cols = NULL, oncols, *ocols = NULL; in MatConvert_MPIMAIJ_MPIAIJ() local
955 PetscCall(MatGetRow_SeqAIJ(MatOAIJ, i, &oncols, &ocols, &ovals)); in MatConvert_MPIMAIJ_MPIAIJ()
958 for (k = 0; k < oncols; k++) oicols[k] = dof * garray[ocols[k]] + j; in MatConvert_MPIMAIJ_MPIAIJ()
964 PetscCall(MatRestoreRow_SeqAIJ(MatOAIJ, i, &oncols, &ocols, &ovals)); in MatConvert_MPIMAIJ_MPIAIJ()
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A Dpetscmat.pxi1086 object orows, object ocols, object values): argument
1091 cdef ndarray cols = iarray_i(ocols, &nj, &j)
/petsc/src/mat/impls/is/
H A Dmatis.c3139 PetscInt nrows, ncols, orows, ocols; in MatISSetLocalMat_IS() local
3145 PetscCall(MatGetSize(is->A, &orows, &ocols)); in MatISSetLocalMat_IS()
3147ocols == ncols, PETSC_COMM_SELF, PETSC_ERR_ARG_SIZ, "Local MATIS matrix should be of size %" Petsc… in MatISSetLocalMat_IS()