Lines Matching refs:ocols
1398 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()
1460 PetscCall(PetscFree2(cols, ocols)); in DMCreateMatrix_DA_1d_MPIAIJ_Fill()