<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">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_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>