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

RAMSES inaccurate Mpc to cm conversion value #3867

Closed
lconaboy opened this issue Mar 29, 2022 · 0 comments · Fixed by #3868
Closed

RAMSES inaccurate Mpc to cm conversion value #3867

lconaboy opened this issue Mar 29, 2022 · 0 comments · Fixed by #3868
Labels
bug code frontends Things related to specific frontends
Milestone

Comments

@lconaboy
Copy link
Contributor

Bug report

Bug summary

The RAMSES frontend uses the value 3.08e24 to convert from Mpc to cm when determining the current (proper) simulation time. This is probably a hangover from when the value 3.08e24 was widely used in RAMSES itself, but modern versions of the code use the more accurate 3.0856776d+24, which agrees with cm_per_mpc defined in yt/utilities/physical_ratios.py.

Originally mentioned in #3864 and might affect #2098.

Version Information

  • Operating System: Ubuntu 18.04
  • Python Version: 3.8.5 (Anaconda)
  • yt version: 4.1.dev0 (from source)
lconaboy added a commit to lconaboy/yt that referenced this issue Mar 29, 2022
@neutrinoceros neutrinoceros linked a pull request Mar 29, 2022 that will close this issue
@neutrinoceros neutrinoceros added bug code frontends Things related to specific frontends labels Mar 29, 2022
@cphyc cphyc added this to the 4.0.3 milestone Mar 29, 2022
cphyc added a commit that referenced this issue Mar 31, 2022
BUG: Use cm_per_mpc instead of 3.08e24 #3867
neutrinoceros added a commit that referenced this issue Mar 31, 2022
…8-on-yt-4.0.x

Backport PR #3868 on branch yt-4.0.x (BUG: Use cm_per_mpc instead of 3.08e24 #3867)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug code frontends Things related to specific frontends
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants