1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
|
<center><a href="https://gitlab.com/petsc/petsc/-/blob/966382dc56242773704ef5f5cee7aa2db3ebc577/include/petscpartitioner.h">Actual source code: petscpartitioner.h</a></center><br>
<html>
<head>
<title></title>
<meta name="generator" content="c2html 0.9.6">
<meta name="date" content="2025-04-30T18:14:50+00:00">
</head>
<body bgcolor="#FFFFFF">
<pre width=80>
<a name="line1"> 1: </a><font color="#A020F0">#pragma once</font>
<a name="line3"> 3: </a>#include <A href="../include/petscsection.h.html"><petscsection.h></A>
<a name="line5"> 5: </a><font color="#B22222">/* MANSEC = <a href="../manualpages/Mat/Mat.html">Mat</a> */</font>
<a name="line6"> 6: </a><font color="#B22222">/* SUBMANSEC = MatGraphOperations */</font>
<a name="line8"> 8: </a><font color="#B22222">/*S</font>
<a name="line9"> 9: </a><font color="#B22222"> <a href="../manualpages/MatGraphOperations/PetscPartitioner.html">PetscPartitioner</a> - PETSc object that manages a graph partitioner</font>
<a name="line11"> 11: </a><font color="#B22222"> Level: intermediate</font>
<a name="line13"> 13: </a><font color="#B22222"> Note:</font>
<a name="line14"> 14: </a><font color="#B22222"> Also consider `<a href="../manualpages/Mat/MatPartitioning.html">MatPartitioning</a>` which provides an alternative API for partitioning.</font>
<a name="line16"> 16: </a><font color="#B22222">.seealso: `<a href="../manualpages/MatGraphOperations/PetscPartitionerCreate.html">PetscPartitionerCreate</a>()`, `<a href="../manualpages/MatGraphOperations/PetscPartitionerSetType.html">PetscPartitionerSetType</a>()`, `<a href="../manualpages/MatGraphOperations/PetscPartitionerType.html">PetscPartitionerType</a>`, `<a href="../manualpages/Mat/MatPartitioning.html">MatPartitioning</a>`, `<a href="../manualpages/MatGraphOperations/MatPartitioningCreate.html">MatPartitioningCreate</a>()`</font>
<a name="line17"> 17: </a><font color="#B22222">S*/</font>
<a name="line18"> 18: </a><font color="#4169E1">typedef struct _p_PetscPartitioner *<a href="../manualpages/MatGraphOperations/PetscPartitioner.html">PetscPartitioner</a>;</font>
<a name="line20"> 20: </a>PETSC_EXTERN <a href="../manualpages/Sys/PetscClassId.html">PetscClassId</a> PETSCPARTITIONER_CLASSID;
<a name="line21"> 21: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/MatGraphOperations/PetscPartitionerInitializePackage.html">PetscPartitionerInitializePackage</a>(void)</font></strong>;
<a name="line22"> 22: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/MatGraphOperations/PetscPartitionerFinalizePackage.html">PetscPartitionerFinalizePackage</a>(void)</font></strong>;
<a name="line24"> 24: </a><font color="#B22222">/*J</font>
<a name="line25"> 25: </a><font color="#B22222"> <a href="../manualpages/MatGraphOperations/PetscPartitionerType.html">PetscPartitionerType</a> - String with the name of a PETSc graph partitioner</font>
<a name="line27"> 27: </a><font color="#B22222"> Level: beginner</font>
<a name="line29"> 29: </a><font color="#B22222">.seealso: `<a href="../manualpages/MatGraphOperations/PetscPartitionerSetType.html">PetscPartitionerSetType</a>()`, `<a href="../manualpages/MatGraphOperations/PetscPartitioner.html">PetscPartitioner</a>`</font>
<a name="line30"> 30: </a><font color="#B22222">J*/</font>
<a name="line31"> 31: </a><font color="#4169E1">typedef const char *<a href="../manualpages/MatGraphOperations/PetscPartitionerType.html">PetscPartitionerType</a>;</font>
<a name="line32"> 32: </a><strong><font color="#228B22">#define <a href="../manualpages/MatGraphOperations/PETSCPARTITIONERPARMETIS.html">PETSCPARTITIONERPARMETIS</a> </font><font color="#666666">"parmetis"</font><font color="#228B22"></font></strong>
<a name="line33"> 33: </a><strong><font color="#228B22">#define <a href="../manualpages/MatGraphOperations/PETSCPARTITIONERPTSCOTCH.html">PETSCPARTITIONERPTSCOTCH</a> </font><font color="#666666">"ptscotch"</font><font color="#228B22"></font></strong>
<a name="line34"> 34: </a><strong><font color="#228B22">#define <a href="../manualpages/MatGraphOperations/PETSCPARTITIONERCHACO.html">PETSCPARTITIONERCHACO</a> </font><font color="#666666">"chaco"</font><font color="#228B22"></font></strong>
<a name="line35"> 35: </a><strong><font color="#228B22">#define <a href="../manualpages/MatGraphOperations/PETSCPARTITIONERSIMPLE.html">PETSCPARTITIONERSIMPLE</a> </font><font color="#666666">"simple"</font><font color="#228B22"></font></strong>
<a name="line36"> 36: </a><strong><font color="#228B22">#define <a href="../manualpages/MatGraphOperations/PETSCPARTITIONERSHELL.html">PETSCPARTITIONERSHELL</a> </font><font color="#666666">"shell"</font><font color="#228B22"></font></strong>
<a name="line37"> 37: </a><strong><font color="#228B22">#define <a href="../manualpages/MatGraphOperations/PETSCPARTITIONERGATHER.html">PETSCPARTITIONERGATHER</a> </font><font color="#666666">"gather"</font><font color="#228B22"></font></strong>
<a name="line39"> 39: </a>PETSC_EXTERN <a href="../manualpages/Sys/PetscFunctionList.html">PetscFunctionList</a> PetscPartitionerList;
<a name="line40"> 40: </a><strong><font color="#4169E1"><a name="PetscPartitionerRegister"></a>PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/MatGraphOperations/PetscPartitionerRegister.html">PetscPartitionerRegister</a>(const char[], <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (*)(<a href="../manualpages/MatGraphOperations/PetscPartitioner.html">PetscPartitioner</a>)</font></strong>);
<a name="line42"> 42: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/MatGraphOperations/PetscPartitionerCreate.html">PetscPartitionerCreate</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/MatGraphOperations/PetscPartitioner.html">PetscPartitioner</a> *)</font></strong>;
<a name="line43"> 43: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/MatGraphOperations/PetscPartitionerDestroy.html">PetscPartitionerDestroy</a>(<a href="../manualpages/MatGraphOperations/PetscPartitioner.html">PetscPartitioner</a> *)</font></strong>;
<a name="line44"> 44: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/MatGraphOperations/PetscPartitionerSetType.html">PetscPartitionerSetType</a>(<a href="../manualpages/MatGraphOperations/PetscPartitioner.html">PetscPartitioner</a>, <a href="../manualpages/MatGraphOperations/PetscPartitionerType.html">PetscPartitionerType</a>)</font></strong>;
<a name="line45"> 45: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/MatGraphOperations/PetscPartitionerGetType.html">PetscPartitionerGetType</a>(<a href="../manualpages/MatGraphOperations/PetscPartitioner.html">PetscPartitioner</a>, <a href="../manualpages/MatGraphOperations/PetscPartitionerType.html">PetscPartitionerType</a> *)</font></strong>;
<a name="line46"> 46: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/MatGraphOperations/PetscPartitionerSetUp.html">PetscPartitionerSetUp</a>(<a href="../manualpages/MatGraphOperations/PetscPartitioner.html">PetscPartitioner</a>)</font></strong>;
<a name="line47"> 47: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/MatGraphOperations/PetscPartitionerReset.html">PetscPartitionerReset</a>(<a href="../manualpages/MatGraphOperations/PetscPartitioner.html">PetscPartitioner</a>)</font></strong>;
<a name="line48"> 48: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/MatGraphOperations/PetscPartitionerSetFromOptions.html">PetscPartitionerSetFromOptions</a>(<a href="../manualpages/MatGraphOperations/PetscPartitioner.html">PetscPartitioner</a>)</font></strong>;
<a name="line49"> 49: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/MatGraphOperations/PetscPartitionerViewFromOptions.html">PetscPartitionerViewFromOptions</a>(<a href="../manualpages/MatGraphOperations/PetscPartitioner.html">PetscPartitioner</a>, <a href="../manualpages/Sys/PetscObject.html">PetscObject</a>, const char[])</font></strong>;
<a name="line50"> 50: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/MatGraphOperations/PetscPartitionerView.html">PetscPartitionerView</a>(<a href="../manualpages/MatGraphOperations/PetscPartitioner.html">PetscPartitioner</a>, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>)</font></strong>;
<a name="line51"> 51: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/MatGraphOperations/PetscPartitionerPartition.html">PetscPartitionerPartition</a>(<a href="../manualpages/MatGraphOperations/PetscPartitioner.html">PetscPartitioner</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>[], <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>[], <a href="../manualpages/PetscSection/PetscSection.html">PetscSection</a>, <a href="../manualpages/PetscSection/PetscSection.html">PetscSection</a>, <a href="../manualpages/PetscSection/PetscSection.html">PetscSection</a>, <a href="../manualpages/PetscSection/PetscSection.html">PetscSection</a>, <a href="../manualpages/IS/IS.html">IS</a> *)</font></strong>;
<a name="line53"> 53: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/MatGraphOperations/PetscPartitionerShellSetPartition.html">PetscPartitionerShellSetPartition</a>(<a href="../manualpages/MatGraphOperations/PetscPartitioner.html">PetscPartitioner</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, const <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>[], const <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>[])</font></strong>;
<a name="line54"> 54: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/MatGraphOperations/PetscPartitionerShellSetRandom.html">PetscPartitionerShellSetRandom</a>(<a href="../manualpages/MatGraphOperations/PetscPartitioner.html">PetscPartitioner</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line55"> 55: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/MatGraphOperations/PetscPartitionerShellGetRandom.html">PetscPartitionerShellGetRandom</a>(<a href="../manualpages/MatGraphOperations/PetscPartitioner.html">PetscPartitioner</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line57"> 57: </a><font color="#B22222">/* We should implement <a href="../manualpages/MatGraphOperations/PetscPartitioner.html">PetscPartitioner</a> with <a href="../manualpages/Mat/MatPartitioning.html">MatPartitioning</a> */</font>
<a name="line58"> 58: </a>#include <A href="../include/petscmat.h.html"><petscmat.h></A>
<a name="line59"> 59: </a><strong><font color="#228B22">#define <a href="../manualpages/MatGraphOperations/PETSCPARTITIONERMATPARTITIONING.html">PETSCPARTITIONERMATPARTITIONING</a> </font><font color="#666666">"matpartitioning"</font><font color="#228B22"></font></strong>
<a name="line60"> 60: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/MatGraphOperations/PetscPartitionerMatPartitioningGetMatPartitioning.html">PetscPartitionerMatPartitioningGetMatPartitioning</a>(<a href="../manualpages/MatGraphOperations/PetscPartitioner.html">PetscPartitioner</a>, <a href="../manualpages/Mat/MatPartitioning.html">MatPartitioning</a> *)</font></strong>;
</pre>
</body>
</html>
|