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

[bugfix] generate_smoothing_length expects 64-bit positions #3374

Merged
merged 1 commit into from
Jun 24, 2021

Conversation

jzuhone
Copy link
Contributor

@jzuhone jzuhone commented Jun 23, 2021

PR Summary

In PR #2645 we added the capability to generate smoothing lengths for a Gadget HDF5 dataset that didn't have one. It turns out the example I used had 64-bit particle positions (which is not typical, Gadget datasets usually have 32-bit positions), and the generate_smoothing_length function expects 64-bit positions.

There may be a better way of handling this (with a fused type or something) but this is a quick fix. Note that we have to cast the positions array upon entry into the generate_smoothing_length function so that the original array retains its original type.

@jzuhone jzuhone added the bug label Jun 23, 2021
@jzuhone jzuhone changed the title generate_smoothing_length expects 64-bit positions [bugfix] generate_smoothing_length expects 64-bit positions Jun 23, 2021
Copy link
Member

@neutrinoceros neutrinoceros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@neutrinoceros
Copy link
Member

@yt-fido test this please

@neutrinoceros neutrinoceros merged commit d1607b2 into yt-project:main Jun 24, 2021
@jzuhone jzuhone deleted the gen_hsml_64bit branch October 24, 2021 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants