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

Empty state mismatch #54

Closed
MTCam opened this issue Mar 10, 2021 · 1 comment · Fixed by #56
Closed

Empty state mismatch #54

MTCam opened this issue Mar 10, 2021 · 1 comment · Fixed by #56

Comments

@MTCam
Copy link
Contributor

MTCam commented Mar 10, 2021

This appears to be the problem causing this MIRGE-Com issue. There is a reproducing snippet in this MIRGE-Com PR.

Here's the gist:

bnd_discr = discr.discr_from_dd(btag)
bnd_nodes = thaw(actx, bnd_discr.nodes())
bnd_normal = thaw(actx, discr.normal(btag))
result = bnd_nodes @ bnd_normal

The bnd_nodes @ bnd_normal operation fails when the boundary represented by btag has 0 points. (Seems like an odd thing - but this happens often in parallel runs as not all partitions own points on all boundaries). The failure seems due to this difference in the data structures:

bnd_nodes=array([DOFArray((cl.Array([], shape=(0, 3), dtype=float64),)),
       DOFArray((cl.Array([], shape=(0, 3), dtype=float64),)),
       DOFArray((cl.Array([], shape=(0, 3), dtype=float64),))],
      dtype=object)
bnd_normal=array([DOFArray(()), DOFArray(()), DOFArray(())], dtype=object)
@inducer
Copy link
Owner

inducer commented Mar 15, 2021

This snippet reproduces the problem without MPI.

@inducer inducer transferred this issue from inducer/meshmode Mar 15, 2021
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

Successfully merging a pull request may close this issue.

2 participants