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

Documentation wrong for precedence of 'Lx' and 'dx' for NonUniformGrids #458

Closed
guyer opened this issue Sep 24, 2015 · 0 comments · Fixed by #654
Closed

Documentation wrong for precedence of 'Lx' and 'dx' for NonUniformGrids #458

guyer opened this issue Sep 24, 2015 · 0 comments · Fixed by #654

Comments

@guyer
Copy link
Member

guyer commented Sep 24, 2015

The documentation for fp.Grid1D, etc., says "If Lx is specified the length of the domain is always Lx regardless of dx", but this is not true if dx is an explicit list of spacings. E.g.,

mesh = fipy.Grid2D(nx=5, dy=[1]*2+[.5]*4, Lx=3, Ly=1)

will produce a grid six elements high of total height 4. This is the "correct" result, but not what the documentation says will happen.

See http://stackoverflow.com/a/32704639/2019542.

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

Successfully merging a pull request may close this issue.

1 participant