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

bug in cooling function and potential bug in history.cpp #214

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

mari2895
Copy link
Collaborator

@mari2895 mari2895 commented Mar 28, 2024

PR Summary

Was assuming spherical geometry in heating.

PR Checklist

  • Adds a test for any bugs fixed. Adds tests for new features.
  • Format your changes by calling scripts/bash/format.sh.
  • Explain what you did.

@mari2895 mari2895 self-assigned this Mar 28, 2024
@mari2895 mari2895 added the bug Something isn't working label Mar 28, 2024
Comment on lines -196 to +199
const Real r = std::abs(coords.Xc<1>(k, j, i));
Real A[Geometry::NDFULL];
geom.Coords(CellLocation::Cent, b, k, j, i, A);
Real r = std::sqrt(A[1] * A[1] + A[2] * A[2] + A[3] * A[3]);
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is definitely a bug. Thanks for the fix!

@Yurlungur Yurlungur merged commit 7800ad9 into main Mar 28, 2024
2 checks passed
@Yurlungur Yurlungur deleted the mg/bug_lightbulb branch March 28, 2024 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants