Lines Matching refs:leafdata
438 PetscInt *rootdata, *leafdata; in CreateDonorToPeriodicSF() local
447 PetscCall(PetscCalloc2(2 * nroots, &rootdata, 2 * nroots, &leafdata)); in CreateDonorToPeriodicSF()
451 leafdata[point] = point_sizes[point - pStart]; in CreateDonorToPeriodicSF()
453 PetscCall(PetscSFReduceBegin(face_sf, MPIU_INT, leafdata, rootdata + nroots, MPIU_SUM)); in CreateDonorToPeriodicSF()
454 PetscCall(PetscSFReduceEnd(face_sf, MPIU_INT, leafdata, rootdata + nroots, MPIU_SUM)); in CreateDonorToPeriodicSF()
473 PetscCall(PetscSFBcastBegin(face_sf, MPIU_2INT, rootdata, leafdata, MPI_REPLACE)); in CreateDonorToPeriodicSF()
474 PetscCall(PetscSFBcastEnd(face_sf, MPIU_2INT, rootdata, leafdata, MPI_REPLACE)); in CreateDonorToPeriodicSF()
479 if (leafdata[2 * point + 1] < 0) continue; in CreateDonorToPeriodicSF()
480 leaf_offset += leafdata[2 * point + 1]; in CreateDonorToPeriodicSF()
488 PetscInt cl_size = leafdata[2 * point + 1]; in CreateDonorToPeriodicSF()
492 closure_leaf[leaf_offset].index = leafdata[2 * point] + j; in CreateDonorToPeriodicSF()
501 PetscCall(PetscFree2(rootdata, leafdata)); in CreateDonorToPeriodicSF()
962 PetscInt *leafdata; in DMPlexCreateIsoperiodicPointSF_Private() local
963 PetscCall(PetscMalloc1(nroots, &leafdata)); in DMPlexCreateIsoperiodicPointSF_Private()
968 leafdata[num_new_leaves] = i; in DMPlexCreateIsoperiodicPointSF_Private()
971 …PetscCall(ISCreateGeneral(PETSC_COMM_SELF, num_new_leaves, leafdata, PETSC_COPY_VALUES, &(*is_poin… in DMPlexCreateIsoperiodicPointSF_Private()
975 …PetscCall(PetscSFSetGraph(csf, nroots, num_new_leaves, leafdata, PETSC_COPY_VALUES, new_iremote, P… in DMPlexCreateIsoperiodicPointSF_Private()
977 PetscCall(PetscFree(leafdata)); in DMPlexCreateIsoperiodicPointSF_Private()
1019 PetscSFNode *new_leafdata, *rootdata, *leafdata; in DMPlexMigrateIsoperiodicFaceSF_Internal() local
1027 …PetscCall(PetscMalloc3(old_npoints, &rootdata, old_npoints, &leafdata, new_npoints, &new_leafdata)… in DMPlexMigrateIsoperiodicFaceSF_Internal()
1045 leafdata[i].rank = -1; in DMPlexMigrateIsoperiodicFaceSF_Internal()
1046 leafdata[i].index = -1; in DMPlexMigrateIsoperiodicFaceSF_Internal()
1048 …PetscCall(PetscSFBcastBegin(plex->periodic.face_sfs[f], MPIU_SF_NODE, rootdata, leafdata, MPI_REPL… in DMPlexMigrateIsoperiodicFaceSF_Internal()
1049 …PetscCall(PetscSFBcastEnd(plex->periodic.face_sfs[f], MPIU_SF_NODE, rootdata, leafdata, MPI_REPLAC… in DMPlexMigrateIsoperiodicFaceSF_Internal()
1052 PetscCall(PetscSFBcastBegin(sf_migration, MPIU_SF_NODE, leafdata, new_leafdata, MPI_REPLACE)); in DMPlexMigrateIsoperiodicFaceSF_Internal()
1053 PetscCall(PetscSFBcastEnd(sf_migration, MPIU_SF_NODE, leafdata, new_leafdata, MPI_REPLACE)); in DMPlexMigrateIsoperiodicFaceSF_Internal()
1067 PetscCall(PetscFree3(rootdata, leafdata, new_leafdata)); in DMPlexMigrateIsoperiodicFaceSF_Internal()