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: Typo in gravitational energy #163

Merged
merged 1 commit into from
Sep 8, 2023
Merged

fix: Typo in gravitational energy #163

merged 1 commit into from
Sep 8, 2023

Conversation

musoke
Copy link
Owner

@musoke musoke commented Sep 8, 2023

9b17f30
(#152) introduced a bug in the gravitational energy.
The arguments of E_gravity_density are reversed. This doesn't show up in tests because the psi used is real, so the incorrect energy density can be coerced to be real.

Fix this and update the tests of summaries so that psi is complex.

@codecov
Copy link

codecov bot commented Sep 8, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.16% 🎉

Comparison is base (a555b8f) 84.71% compared to head (0f95fb3) 84.88%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #163      +/-   ##
==========================================
+ Coverage   84.71%   84.88%   +0.16%     
==========================================
  Files           8        8              
  Lines         602      602              
==========================================
+ Hits          510      511       +1     
+ Misses         92       91       -1     
Files Changed Coverage Δ
src/grids.jl 87.75% <100.00%> (ø)

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

9b17f30
(#152) introduced a bug in
the gravitational energy.
The arguments of E_gravity_density are reversed.  This doesn't show up in
tests because the psi used is real, so the incorrect energy density can
be coerced to be real.

Fix this and update the tests of summaries so that psi is complex.
@musoke musoke merged commit f1f6434 into main Sep 8, 2023
12 checks passed
@musoke musoke deleted the fix-e_grav branch September 8, 2023 18:27
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.

None yet

1 participant