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

Grid generation fails with dimensionally disparate npoints #74

Closed
MTCam opened this issue Nov 4, 2020 · 2 comments
Closed

Grid generation fails with dimensionally disparate npoints #74

MTCam opened this issue Nov 4, 2020 · 2 comments

Comments

@MTCam
Copy link
Contributor

MTCam commented Nov 4, 2020

It would be good if we could make rectangular grids with uniform (or arbitrary) spacing. The example here is a rectangle [0, 10] x [0 , 1] wherein uniform spacing is attempted, i.e. npts = (101, 11). The grid generator appears to fail to produce this grid.

x0 = 0.0
y0 = 0.0
x1 = 10.0
y1 = 1.0
nx = 101
ny = 11

npts = (nx, ny)
a = (x0, y0)
b = (x1, y1)

from meshmode.mesh.generation import generate_regular_rect_mesh
mesh = generate_regular_rect_mesh(a=a, b=b, n=npts)
@inducer
Copy link
Owner

inducer commented Nov 4, 2020

Wasn't this fixed by #72?

@MTCam
Copy link
Contributor Author

MTCam commented Nov 4, 2020

Fixes so fast you'll freak? Holy cow.

@MTCam MTCam closed this as completed Nov 4, 2020
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