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

Fix showarrays incorrectly reading files as single precision #164

Merged
merged 1 commit into from
Aug 25, 2021

Conversation

conradtchan
Copy link
Collaborator

singleprec is not initialised to .false., so double precision files may be incorrectly read as single precision, causing showarrays to print out junk values.

Resolves #163. The problem is not with the native phantom outputs themselves; it is caused by a bad reader. This problem did not arise with HDF5 outputs because an external HDF5 file reader was used to examine the values. This problem was not unique to sink particles; it affected all arrays.

@conradtchan conradtchan changed the title Fix showarrays incorrectly reading files as single. precision Fix showarrays incorrectly reading files as single precision Aug 24, 2021
@danieljprice danieljprice merged commit 835009e into danieljprice:master Aug 25, 2021
@conradtchan conradtchan deleted the showarrays-fix branch August 25, 2021 05:55
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

Successfully merging this pull request may close these issues.

Incorrect sink properties with MPI=yes when using native dumps
2 participants