Searched refs:col_bs (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/mat/tests/ |
| H A D | ex139.c | 27 …PetscInt i, j, k, l, rstart, rend, m, n, top_bs, row_bs, col_bs, nlocblocks, *idx, n… in main() local 41 col_bs = 2; in main() 46 PetscCall(PetscOptionsInt("-col_bs", "Block size of col map", 0, col_bs, &col_bs, NULL)); in main() 74 ncolblocks = (rend - rstart) / col_bs; in main() 79 PetscCall(ISCreateBlock(PETSC_COMM_SELF, col_bs, ncolblocks, cidx, PETSC_COPY_VALUES, &is1)); in main() 93 PetscCall(PetscMalloc3(row_bs, &irow, col_bs, &icol, row_bs * col_bs, &vals)); in main() 97 for (l = 0; l < col_bs; l++) vals[k * col_bs + l] = i * 100000 + j * 1000 + k * 10 + l; in main() 100 for (l = 0; l < col_bs; l++) icol[l] = j * col_bs + l; in main() 104 PetscCall(MatSetValuesLocal(B, row_bs, irow, col_bs, icol, vals, ADD_VALUES)); in main()
|
| /petsc/src/ksp/pc/impls/gamg/ |
| H A D | agg.c | 1281 const PetscInt col_bs = pc_gamg->data_cell_cols; in PCGAMGConstructProlongator_AGG() local 1292 PetscCheck(col_bs >= 1, comm, PETSC_ERR_PLIB, "Column bs cannot be less than 1"); in PCGAMGConstructProlongator_AGG() 1314 …PetscCall(MatSetSizes(Prol, nloc * bs, nLocalSelected * col_bs, PETSC_DETERMINE, PETSC_DETERMINE)); in PCGAMGConstructProlongator_AGG() 1315 PetscCall(MatSetBlockSizes(Prol, bs, col_bs)); // should this be before MatSetSizes? in PCGAMGConstructProlongator_AGG() 1323 PetscCall(MatSeqAIJSetPreallocation(Prol, col_bs, NULL)); in PCGAMGConstructProlongator_AGG() 1324 PetscCall(MatMPIAIJSetPreallocation(Prol, col_bs, NULL, col_bs, NULL)); in PCGAMGConstructProlongator_AGG() 1335 …l(PetscInfo(pc, "%s: New grid %" PetscInt_FMT " nodes\n", ((PetscObject)pc)->prefix, ii / col_bs)); in PCGAMGConstructProlongator_AGG() 1338 …col_bs == 0, PETSC_COMM_SELF, PETSC_ERR_PLIB, "(kk %" PetscInt_FMT " -myCrs0 %" PetscInt_FMT ") no… in PCGAMGConstructProlongator_AGG() 1339 myCrs0 = myCrs0 / col_bs; in PCGAMGConstructProlongator_AGG() 1340 …col_bs - myCrs0) == nLocalSelected, PETSC_COMM_SELF, PETSC_ERR_PLIB, "(kk %" PetscInt_FMT "/col_bs… in PCGAMGConstructProlongator_AGG() [all …]
|