<div dir="ltr">Dear Matt,<div><br></div><div>You were right, I confused concepts. By setting vertex weights, I am able to get different number of edge cuts.</div><div><br></div><div>Thanks,</div><div><br></div><div>Eda</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Matthew Knepley <<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>>, 1 Tem 2019 Pzt, 13:10 tarihinde şunu yazdı:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">On Mon, Jul 1, 2019 at 3:00 AM Eda Oktay <<a href="mailto:eda.oktay@metu.edu.tr" target="_blank">eda.oktay@metu.edu.tr</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="auto">Dear Matt,<div dir="auto"><br></div><div dir="auto">In order to get a nice cut, I am trying to change the balance, that is why I tried to change ubvec. But still I couldn't understand why it didn't change anything.</div><div dir="auto"><br></div><div dir="auto">I tried to change vertex weights but it only made Max and Min change but it didn't change the cut.</div></div></div></blockquote><div><br></div><div>I think you are confusing concepts. The "cut" is the number of edges discarded when you divide the mesh</div><div>into pieces, but each piece is supposed to have an equal size. The only way you can get the partitioner to</div><div>divide the mesh into pieces of unequal size is to use vertex weights.</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="auto"><div dir="auto">Thanks,</div><div dir="auto"><br></div><div dir="auto">Eda</div><br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Fri, Jun 28, 2019, 1:49 PM Matthew Knepley <<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">On Fri, Jun 28, 2019 at 5:38 AM Eda Oktay via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov" rel="noreferrer" target="_blank">petsc-users@mcs.anl.gov</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello everyone,<div><br></div><div>I am trying to change load balance in ParMETIS in order to give different number of elements to different processors. In the manual, it states that changing "ubvec" parameter should work. So, instead of 1.05, I gave 1.2,1.5 and so on but load balance didn't change. I always get Max 5 Min 5 when I view load balance. The partitioning part of my code is: </div></div></blockquote><div><br></div><div>ParMetis is always balancing. ubvec changes the balance between having even partitions and a nice cut. If</div><div>you want unbalanced partitions, you have to change the vertex weights.</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div> ierr = MatConvert(A,MATMPIADJ,MAT_INITIAL_MATRIX,&AL);CHKERRQ(ierr); <br> ierr = MatPartitioningCreate(MPI_COMM_WORLD,&part);CHKERRQ(ierr);<br> ierr = MatPartitioningSetAdjacency(part,AL);CHKERRQ(ierr); <br> ierr = MatPartitioningSetFromOptions(part);CHKERRQ(ierr);<br> ierr = MatPartitioningApply(part,&partitioning);CHKERRQ(ierr);<br> MatPartitioningViewImbalance(part,partitioning);<br> <br></div><div>What should I do? Why changing ubvec didn't change anything, am I missing something?</div><div><br></div><div>Thanks,</div><div><br></div><div>Eda</div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_-921356021641807764gmail-m_379557820987118985m_7612197344927171911m_5905263451207644570gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" rel="noreferrer" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>
</blockquote></div></div>
</div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_-921356021641807764gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>
</blockquote></div>