Chi-Tech
chi__LinearGraphPartitioner.h
Go to the documentation of this file.
1/** \defgroup chi__LinearGraphPartitioner chi.LinearGraphPartitioner
2
3
4\ingroup Graphs
5Basic linear partitioning. This type of partitioner works basically only for testing. Orthogonal meshes can produce decent partitioning but for unstructured grids it can be pretty bad. It partitions cells based on their linear index "global_id" instead of actually working with the graph.
6
7
8## Example usage:
9Create this object:
10\code
11params =
12{
13 param_name1 = value1,
14 param_name2 = value2,
15 --etc.
16}
17chi.LinearGraphPartitioner.Create(params)
18\endcode
19## Optional Input parameters
20\htmlonly
21
22<div style="display: block;">
23<button type="button" class="droppy2" style=
24"
25background-color: #edf0f5;
26color: #9373A5;
27cursor: pointer;
28border: none;
29text-align: left;
30outline: none;
31font-size: 15px;
32margin: 2px 2px;
33border: 2px solid #687372;
34display: block;
35width: 100%;
36vertical-align: middle;
37padding-top: 4px;
38padding-bottom: 0px;
39"
40><span class="arrow" style="padding-left: 0px;">►</span><TT><B>all_to_rank</B></TT><span style="color: #c4c1c0;">&nbsp &nbsp &nbsp &nbspIf non-zero will restrict all cells to this rank, essentially transforming this partitioner into a single-rank partitioner</span></button>
41<div class="content" style="display: none;">
42 <p><I>type=</I><span style="color: blue;"><TT>INTEGER</TT></span>. If non-zero will restrict all cells to this rank, essentially transforming this partitioner into a single-rank partitioner.
43</p>
44 <p>Default value: <TT style="color:grey">-1</TT></p>
45</div>
46
47</div>
48\endhtmlonly
49
50\htmlonly
51
52<script>
53
54{
55 var coll = document.getElementsByClassName("droppy2");
56 var i;
57
58 for (i = 0; i < coll.length; i++) {
59 coll[i].addEventListener("click", function() {
60 this.classList.toggle("active");
61 var content = this.nextElementSibling;
62 if (content.style.display === "block") {
63 content.style.display = "none";
64 this.childNodes[0].innerText = "►"
65 } else {
66 content.style.display = "block";
67 this.children[0].innerText = "▼"
68 }
69 });
70 }
71}</script>
72
73\endhtmlonly
74
75*/