Home
last modified time | relevance | path

Searched refs:partSection (Results 1 – 11 of 11) sorted by relevance

/petsc/src/dm/partitioner/tests/
H A Dex33.c8 PetscSection partSection, vertexSection = NULL, targetSection = NULL; in main() local
34 PetscCall(PetscSectionCreate(PETSC_COMM_WORLD, &partSection)); in main()
73 …rPartition(p, nparts, 0, NULL, NULL, vertexSection, NULL, targetSection, partSection, &partition)); in main()
74 PetscCall(PetscObjectSetName((PetscObject)partSection, "NULL SECTION")); in main()
75 PetscCall(PetscSectionView(partSection, NULL)); in main()
87 …erPartition(p, nparts, nv, vv, vadj, vertexSection, NULL, targetSection, partSection, &partition)); in main()
89 …rPartition(p, nparts, 0, NULL, NULL, vertexSection, NULL, targetSection, partSection, &partition)); in main()
91 PetscCall(PetscObjectSetName((PetscObject)partSection, "SEQ SECTION")); in main()
92 PetscCall(PetscSectionView(partSection, NULL)); in main()
104 …artitionerPartition(p, nparts, 0, NULL, NULL, NULL, NULL, targetSection, partSection, &partition)); in main()
[all …]
/petsc/src/dm/partitioner/impls/gather/
H A Dpartgather.c14 …ion, PetscSection edgeSection, PetscSection targetSection, PetscSection partSection, IS *partition) in PetscPartitionerPartition_Gather() argument
20 PetscCall(PetscSectionSetDof(partSection, 0, numVertices)); in PetscPartitionerPartition_Gather()
21 for (np = 1; np < nparts; ++np) PetscCall(PetscSectionSetDof(partSection, np, 0)); in PetscPartitionerPartition_Gather()
/petsc/src/dm/partitioner/impls/simple/
H A Dpartsimple.c44 …y[], PetscSection vertSection, PetscSection targetSection, PetscSection partSection, IS *partition) in PetscPartitionerPartition_Simple_Grid() argument
78 …for (np = 0; np < nparts; ++np) PetscCall(PetscSectionSetDof(partSection, np, numVertices / nparts… in PetscPartitionerPartition_Simple_Grid()
79 PetscCall(PetscSectionSetUp(partSection)); in PetscPartitionerPartition_Simple_Grid()
81 for (np = 0; np < nparts; ++np) PetscCall(PetscSectionGetOffset(partSection, np, &offsets[np])); in PetscPartitionerPartition_Simple_Grid()
117 …ion, PetscSection edgeSection, PetscSection targetSection, PetscSection partSection, IS *partition) in PetscPartitionerPartition_Simple() argument
126 …(part, nparts, numVertices, start, adjacency, vertSection, targetSection, partSection, partition)); in PetscPartitionerPartition_Simple()
157 for (np = 0; np < nparts; ++np) PetscCall(PetscSectionSetDof(partSection, np, tpwgts[np])); in PetscPartitionerPartition_Simple()
159 …for (np = 0; np < nparts; ++np) PetscCall(PetscSectionSetDof(partSection, np, numVertices / nparts… in PetscPartitionerPartition_Simple()
181 …for (j = 0; j < numVertices; ++j) PetscCall(PetscSectionAddDof(partSection, PetscRealPart(array[j]… in PetscPartitionerPartition_Simple()
229 PetscCall(PetscSectionSetDof(partSection, np, PartEnd - PartStart)); in PetscPartitionerPartition_Simple()
/petsc/src/dm/partitioner/interface/
H A Dpartitioner.c302 …ion, PetscSection edgeSection, PetscSection targetSection, PetscSection partSection, IS *partition) in PetscPartitionerPartition() argument
335 PetscValidHeaderSpecific(partSection, PETSC_SECTION_CLASSID, 9); in PetscPartitionerPartition()
338 PetscCall(PetscSectionReset(partSection)); in PetscPartitionerPartition()
339 PetscCall(PetscSectionSetChart(partSection, 0, nparts)); in PetscPartitionerPartition()
341 PetscCall(PetscSectionSetDof(partSection, 0, numVertices)); in PetscPartitionerPartition()
343 … numVertices, start, adjacency, vertexSection, edgeSection, targetSection, partSection, partition); in PetscPartitionerPartition()
344 PetscCall(PetscSectionSetUp(partSection)); in PetscPartitionerPartition()
/petsc/src/dm/partitioner/impls/chaco/
H A Dpartchaco.c42 …ion, PetscSection edgeSection, PetscSection targetSection, PetscSection partSection, IS *partition) in PetscPartitionerPartition_Chaco() argument
137 for (v = 0; v < nvtxs; ++v) PetscCall(PetscSectionAddDof(partSection, assignment[v], 1)); in PetscPartitionerPartition_Chaco()
/petsc/src/dm/partitioner/impls/matpart/
H A Dpartmatpart.c88 …ertSection, PetscSection edgeSection, PetscSection targetSection, PetscSection partSection, IS *is) in PetscPartitionerPartition_MatPartitioning() argument
164 …for (v = 0; v < numVertices; ++v) PetscCall(PetscSectionAddDof(partSection, assignment_arr[v], 1)); in PetscPartitionerPartition_MatPartitioning()
/petsc/src/dm/partitioner/impls/shell/
H A Dpartshell.c83 …ion, PetscSection edgeSection, PetscSection targetSection, PetscSection partSection, IS *partition) in PetscPartitionerPartition_Shell() argument
121 PetscCall(PetscSectionCopy(p->section, partSection)); in PetscPartitionerPartition_Shell()
/petsc/src/dm/partitioner/impls/multistage/
H A Dmspart.c584 …tion edgeSection, PETSC_UNUSED PetscSection targetSection, PetscSection partSection, IS *partition) in PetscPartitionerPartition_Multistage() argument
695 PetscCall(PetscSectionReset(partSection)); in PetscPartitionerPartition_Multistage()
696 PetscCall(PetscSectionSetChart(partSection, 0, nparts)); in PetscPartitionerPartition_Multistage()
712 PetscCall(PetscSectionSetDof(partSection, mpt, dof)); in PetscPartitionerPartition_Multistage()
714 PetscCall(PetscSectionSetUp(partSection)); in PetscPartitionerPartition_Multistage()
725 …PetscCall(PetscSectionViewFromOptions(partSection, (PetscObject)part, "-petscpartitioner_multistag… in PetscPartitionerPartition_Multistage()
/petsc/src/dm/partitioner/impls/parmetis/
H A Dpartparmetis.c78 …ion, PetscSection edgeSection, PetscSection targetSection, PetscSection partSection, IS *partition) in PetscPartitionerPartition_ParMetis() argument
213 for (v = 0; v < nvtxs; ++v) PetscCall(PetscSectionAddDof(partSection, assignment[v], 1)); in PetscPartitionerPartition_ParMetis()
/petsc/src/dm/partitioner/impls/ptscotch/
H A Dpartptscotch.c202 …ion, PetscSection edgeSection, PetscSection targetSection, PetscSection partSection, IS *partition) in PetscPartitionerPartition_PTScotch() argument
290 for (v = 0; v < nvtxs; ++v) PetscCall(PetscSectionAddDof(partSection, assignment[v], 1)); in PetscPartitionerPartition_PTScotch()
/petsc/src/dm/impls/plex/
H A Dplexpartition.c745 …(PetscPartitioner part, DM dm, PetscSection targetSection, PetscSection partSection, IS *partition) in PetscPartitionerDMPlexPartition() argument
755 PetscValidHeaderSpecific(partSection, PETSC_SECTION_CLASSID, 4); in PetscPartitionerDMPlexPartition()
765 PetscCall(PetscSectionReset(partSection)); in PetscPartitionerDMPlexPartition()
766 PetscCall(PetscSectionSetChart(partSection, 0, size)); in PetscPartitionerDMPlexPartition()
767 PetscCall(PetscSectionSetDof(partSection, 0, cEnd - cStart)); in PetscPartitionerDMPlexPartition()
768 PetscCall(PetscSectionSetUp(partSection)); in PetscPartitionerDMPlexPartition()
855 …, numVertices, start, adjacency, vertSection, edgeSection, targetSection, partSection, partition)); in PetscPartitionerDMPlexPartition()