Home
last modified time | relevance | path

Searched refs:num_ghosts (Results 1 – 3 of 3) sorted by relevance

/petsc/src/ksp/pc/impls/gamg/
H A Dutil.c27 PetscInt nnodes, num_ghosts, dir, kk, jj, my0, Iend, nloc; in PCGAMGGetDataWithGhosts() local
38 PetscCall(VecGetLocalSize(mpimat->lvec, &num_ghosts)); in PCGAMGGetDataWithGhosts()
39 nnodes = num_ghosts + nloc; in PCGAMGGetDataWithGhosts()
59 …for (kk = nloc, jj = 0; jj < num_ghosts; kk++, jj++) datas[dir * nnodes + kk] = PetscRealPart(data… in PCGAMGGetDataWithGhosts()
/petsc/src/mat/graphops/coarsen/impls/hem/
H A Dhem.c461 PetscInt *lghost_gid, nEdges, nEdges0, num_ghosts = 0; in MatCoarsenApply_HEM_private() local
499 PetscCall(VecGetLocalSize(mpimat->lvec, &num_ghosts)); in MatCoarsenApply_HEM_private()
511 …PetscCall(PetscMalloc4(num_ghosts, &lghost_matched, num_ghosts, &lghost_pe, num_ghosts, &lghost_gi… in MatCoarsenApply_HEM_private()
513 …for (PetscInt kk = 0; kk < num_ghosts; kk++) lghost_matched[kk] = (PetscBool)(PetscRealPart(buf[kk… in MatCoarsenApply_HEM_private()
523 …for (PetscInt kk = 0; kk < num_ghosts; kk++) lghost_pe[kk] = (PetscMPIInt)PetscRealPart(buf[kk]); … in MatCoarsenApply_HEM_private()
537 … for (PetscInt kk = 0; kk < num_ghosts; kk++) lghost_gid[kk] = (PetscInt)PetscRealPart(buf[kk]); in MatCoarsenApply_HEM_private()
542 for (ix = 0, ncomm_procs = 0; ix < num_ghosts; ix++) { in MatCoarsenApply_HEM_private()
612 …for (PetscInt kk = 0; kk < num_ghosts; kk++) lghost_max_pe[kk] = (PetscMPIInt)PetscRealPart(buf[kk… in MatCoarsenApply_HEM_private()
983 …for (PetscInt kk = 0; kk < num_ghosts; kk++) lghost_matched[kk] = (PetscBool)(PetscRealPart(sbuff[… in MatCoarsenApply_HEM_private()
1046 …for (PetscInt kk = 0; kk < num_ghosts; kk++) lghost_max_pe[kk] = (PetscMPIInt)PetscRealPart(buf[kk… in MatCoarsenApply_HEM_private()
/petsc/src/dm/impls/plex/
H A Dplexsfc.c1272 …PetscInt num_ghosts = local_verts - owned_verts; // Due to sorting, owned vertices always co… in DMPlexCreateBoxMesh_Tensor_SFC_Internal() local
1275 PetscCall(PetscMalloc1(num_ghosts, &local_ghosts)); in DMPlexCreateBoxMesh_Tensor_SFC_Internal()
1276 PetscCall(PetscMalloc1(num_ghosts, &ghosts)); in DMPlexCreateBoxMesh_Tensor_SFC_Internal()
1277 for (PetscInt i = 0; i < num_ghosts;) { in DMPlexCreateBoxMesh_Tensor_SFC_Internal()
1296 if (i == num_ghosts) break; in DMPlexCreateBoxMesh_Tensor_SFC_Internal()
1303 …PetscCall(PetscSFSetGraph(sf, local_elems + local_verts, num_ghosts, local_ghosts, PETSC_OWN_POINT… in DMPlexCreateBoxMesh_Tensor_SFC_Internal()