Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partitioning fails on 2D geometries #113

Open
davidscn opened this issue May 11, 2022 · 1 comment
Open

Partitioning fails on 2D geometries #113

davidscn opened this issue May 11, 2022 · 1 comment

Comments

@davidscn
Copy link
Member

When trying to use the mesh partitioner for a 2D geometry, I face several issues such as:

partition_mesh.py:201: RuntimeWarning: invalid value encountered in true_divide
  axis /= np.linalg.norm(axis)

or

line 301, in partition_uniform
    small, big = greedy_choose(prime_factors(numparts))
TypeError: 'staticmethod' object is not callable

I realized that these are mostly untested things. We should add tests for the partitioning and fix the problem here. The mesh to reproduce this issue:
2D-example.zip

@kursatyurt
Copy link
Collaborator

Static method error is due to inner functions it would fixed in #114.

The top one other Nan/Inf error which would arise is due to weakness of the algorithm used (or may be just implementation), I would suggest to use METIS partitioner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants