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

Setting nx, ny, nz to non-positive integer should generate an error #1002

Open
guyer opened this issue Feb 5, 2024 · 0 comments
Open

Setting nx, ny, nz to non-positive integer should generate an error #1002

guyer opened this issue Feb 5, 2024 · 0 comments

Comments

@guyer
Copy link
Member

guyer commented Feb 5, 2024

nx, ny, and nz are cardinal numbers of grid cells. They should not be allowed to be floats or non-positive integers (zero probably needs to be allowed for parallel partitioning).

>>> mesh = fp.Grid1D(nx=0.01, dx=10)
>>> mesh
UniformGrid1D(dx=10, nx=0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant