Closed zhf-0 closed 1 year ago
I modified the format of the changes, please approve the checks.
I re-checked the format with flake8.
I re-checked the format of doc
Thanks!
Hello, I want to ask when the updated version of pymetis
will be uploaded to PyPi
and conda
repositories. I want to install pymetis
on other computers and don't want to install all requirements to re-compile it.
I've just released 2023.1.1. It should be making its way to the package index before too long.
Thank you very much!
When using
pymetis.part_mesh
to partition the mesh based on element, the value ofncommon
will severely influence the balance of each subdomain. Considering the following meshand the program is
The output of
elem_idx_list
iswhich means four elements are divided into one subdomain, while the correct division is 2 elements in each subdomain.
The explanation of
ncommon
from the manual ofmetis
isAfter adding the parameter, the program is
and the
elem_idx_list
isTherefore, this parameter
ncommon
should be exposed to the user for customized usage. I addncommon
as the parameter with default value 1, to keep the interface unchanged.