Searched refs:num_fine_ghosts (Results 1 – 3 of 3) sorted by relevance
| /petsc/src/mat/graphops/coarsen/impls/mis/ |
| H A D | mis.c | 28 …PetscInt num_fine_ghosts, kk, n, ix, j, *idx, *ii, Iend, my0, nremoved, gid, lid, cpid, l… in MatCoarsenApply_MIS_private() local 61 PetscCall(VecGetLocalSize(mpimat->lvec, &num_fine_ghosts)); in MatCoarsenApply_MIS_private() 62 PetscCall(PetscMalloc2(num_fine_ghosts, &cpcol_gid, num_fine_ghosts, &cpcol_state)); in MatCoarsenApply_MIS_private() 65 …PetscCall(PetscSFSetGraphLayout(sf, layout, num_fine_ghosts, NULL, PETSC_COPY_VALUES, mpimat->garr… in MatCoarsenApply_MIS_private() 68 for (kk = 0; kk < num_fine_ghosts; kk++) cpcol_state[kk] = MIS_NOT_DONE; in MatCoarsenApply_MIS_private() 69 } else num_fine_ghosts = 0; in MatCoarsenApply_MIS_private() 72 PetscCall(PetscCDCreate(strict_aggs ? nloc : num_fine_ghosts + nloc, &agg_lists)); in MatCoarsenApply_MIS_private() 216 PetscCall(PetscMalloc2(num_fine_ghosts, &cpcol_sel_gid, num_fine_ghosts, &icpcol_gid)); in MatCoarsenApply_MIS_private() 217 for (cpid = 0; cpid < num_fine_ghosts; cpid++) icpcol_gid[cpid] = cpcol_gid[cpid]; in MatCoarsenApply_MIS_private() 222 for (cpid = 0; cpid < num_fine_ghosts; cpid++) { in MatCoarsenApply_MIS_private()
|
| /petsc/src/mat/graphops/coarsen/impls/misk/ |
| H A D | misk.c | 74 …PetscInt num_fine_ghosts, kk, n, ix, j, *idx, *ai, Iend, my0, nremoved, gid, cpid, lidj, … in MatCoarsenApply_MISK_private() local 98 PetscCall(VecGetLocalSize(mpimat->lvec, &num_fine_ghosts)); in MatCoarsenApply_MISK_private() 99 PetscCall(PetscMalloc2(num_fine_ghosts, &cpcol_gid, num_fine_ghosts, &cpcol_state)); in MatCoarsenApply_MISK_private() 102 …PetscCall(PetscSFSetGraphLayout(sf, layout, num_fine_ghosts, NULL, PETSC_COPY_VALUES, mpimat->garr… in MatCoarsenApply_MISK_private() 105 for (kk = 0; kk < num_fine_ghosts; kk++) cpcol_state[kk] = MIS_NOT_DONE; in MatCoarsenApply_MISK_private() 107 } else num_fine_ghosts = 0; in MatCoarsenApply_MISK_private() 228 PetscCall(PetscMalloc2(num_fine_ghosts, &icpcol_gid, num_fine_ghosts, &cpcol_sel_gid)); in MatCoarsenApply_MISK_private() 229 for (cpid = 0; cpid < num_fine_ghosts; cpid++) icpcol_gid[cpid] = cpcol_gid[cpid]; in MatCoarsenApply_MISK_private() 233 for (cpid = 0; cpid < num_fine_ghosts; cpid++) { in MatCoarsenApply_MISK_private()
|
| /petsc/src/ksp/pc/impls/gamg/ |
| H A D | geo.c | 446 PetscInt idx, num_fine_ghosts, num_crs_ghost, myCrs0; in getGIDsOnSquareGraph() local 475 PetscCall(VecGetLocalSize(mpimat2->lvec, &num_fine_ghosts)); in getGIDsOnSquareGraph() 477 for (kk = 0, num_crs_ghost = 0; kk < num_fine_ghosts; kk++) { in getGIDsOnSquareGraph() 485 for (kk = 0, idx = nselected_1; kk < num_fine_ghosts; kk++) { in getGIDsOnSquareGraph()
|