Home
last modified time | relevance | path

Searched refs:num_pairs (Results 1 – 2 of 2) sorted by relevance

/petsc/src/ksp/pc/impls/tfs/
H A Dgs.c76 PetscInt num_pairs; member
687 nprs = gs->num_pairs = PCTFS_ct_bits((char *)sh_proc_mask, p_mask_size * sizeof(PetscInt)); in set_pairwise()
930 if (gs->num_pairs) { in PCTFS_gs_free()
946 for (i = 0; i < gs->num_pairs; i++) { in PCTFS_gs_free()
1001 if (gs->num_pairs) PetscCall(PCTFS_gs_gop_vec_pairwise_plus(gs, vals, step)); in PCTFS_gs_gop_vec_plus()
1009 if (gs->num_pairs) PetscCall(PCTFS_gs_gop_vec_pairwise_plus(gs, vals, step)); in PCTFS_gs_gop_vec_plus()
1301 if (gs->num_pairs) PetscCall(PCTFS_gs_gop_pairwise_plus_hc(gs, vals, dim)); /* tree only */ in PCTFS_gs_gop_plus_hc()
1307 if (gs->num_pairs) PetscCall(PCTFS_gs_gop_pairwise_plus_hc(gs, vals, dim)); /* tree */ in PCTFS_gs_gop_plus_hc()
/petsc/src/dm/impls/plex/
H A Dplexpreallocate.c278 PetscInt *roots_with_dups, num_non_dups, num_pairs = 0; in DMPlexCreateAdjacencySection_Static() local
292 PetscCall(PetscIntCast(buffer_size, &num_pairs)); in DMPlexCreateAdjacencySection_Static()
298 PetscCall(PetscIntSortSemiOrderedWithArray(num_pairs, roots_with_dups, myRankPairLeaves)); in DMPlexCreateAdjacencySection_Static()
301 PetscCall(PetscIntViewPairs(num_pairs, 5, roots_with_dups, myRankPairLeaves, NULL)); in DMPlexCreateAdjacencySection_Static()
303 PetscCall(PetscMalloc1(num_pairs, &myRankPairRoots)); in DMPlexCreateAdjacencySection_Static()
304 PetscCall(PetscArraycpy(myRankPairRoots, roots_with_dups, num_pairs)); in DMPlexCreateAdjacencySection_Static()
306 num_non_dups = num_pairs; in DMPlexCreateAdjacencySection_Static()
310 for (PetscInt p = 0; p < num_pairs; p++) { in DMPlexCreateAdjacencySection_Static()