yt-project/yt

Handling cell_volume in 1D and 2D cartesian

Open

#797 opened on Mar 5, 2014

View on GitHub
 (4 comments) (0 reactions) (0 assignees)Python (315 forks)auto 404
help wantedwishlist

Repository metrics

Stars
 (556 stars)
PR merge metrics
 (PR metrics pending)

Description

Originally reported by: John ZuHone (Bitbucket: jzuhone, GitHub: jzuhone)


cell_volume is ill-defined for 1D and 2D cartesian data because it is still given in terms of length**3, even though the unused dimensions are meaningless. What we have done is set the domain_width to unity in these cases, but with the unit refactor I think this issue ought to be revisited.

That said, I'm not sure what to do about it.


Contributor guide