Lines Matching refs:nroots
437 PetscInt nroots, nleaves; in CreateDonorToPeriodicSF() local
446 PetscCall(PetscSFGetGraph(face_sf, &nroots, &nleaves, &filocal, &firemote)); in CreateDonorToPeriodicSF()
447 PetscCall(PetscCalloc2(2 * nroots, &rootdata, 2 * nroots, &leafdata)); 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()
457 PetscCall(PetscBTCreate(nroots, rootbt)); in CreateDonorToPeriodicSF()
458 for (PetscInt p = 0; p < nroots; p++) { in CreateDonorToPeriodicSF()
459 const PetscInt *donor_dof = rootdata + nroots; in CreateDonorToPeriodicSF()
541 PetscInt nroots, nleaves; in DMPlexCorrectOrientationForIsoperiodic() local
628 PetscCall(PetscSFGetGraph(face_sf, &nroots, &nleaves, &filocal, NULL)); in DMPlexCorrectOrientationForIsoperiodic()
640 … donor_face = 0, donor_vert_offset = 0, donor_cone_offset = 0; donor_face < nroots; donor_face++) { in DMPlexCorrectOrientationForIsoperiodic()
868 PetscInt nroots, nleaves; in DMPlexCreateIsoperiodicPointSF_Private() local
898 PetscCall(PetscSFGetGraph(face_sf, &nroots, &nleaves, &filocal, &firemote)); in DMPlexCreateIsoperiodicPointSF_Private()
909 for (PetscInt p = 0, root_offset = 0; p < nroots; p++) { in DMPlexCreateIsoperiodicPointSF_Private()
939 PetscCall(PetscCalloc1(nroots, &new_iremote)); in DMPlexCreateIsoperiodicPointSF_Private()
940 for (PetscInt i = 0; i < nroots; i++) new_iremote[i].rank = -1; in DMPlexCreateIsoperiodicPointSF_Private()
963 PetscCall(PetscMalloc1(nroots, &leafdata)); in DMPlexCreateIsoperiodicPointSF_Private()
965 for (PetscInt i = 0; i < nroots; i++) { in DMPlexCreateIsoperiodicPointSF_Private()
975 …PetscCall(PetscSFSetGraph(csf, nroots, num_new_leaves, leafdata, PETSC_COPY_VALUES, new_iremote, P… in DMPlexCreateIsoperiodicPointSF_Private()