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

entropy added in outputs #201

Merged
merged 9 commits into from
Mar 6, 2024
Merged

entropy added in outputs #201

merged 9 commits into from
Mar 6, 2024

Conversation

mari2895
Copy link
Collaborator

@mari2895 mari2895 commented Mar 4, 2024

PR Summary

entropy added in outputs

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.

src/phoebus_driver.cpp Outdated Show resolved Hide resolved
src/phoebus_driver.cpp Outdated Show resolved Hide resolved
src/phoebus_driver.cpp Outdated Show resolved Hide resolved
@AstroBarker
Copy link
Collaborator

Not sure why the bondi test is crashing, but it's happening locally, too. Looking into it..

src/phoebus_driver.cpp Outdated Show resolved Hide resolved
Copy link
Collaborator

@Yurlungur Yurlungur left a comment

Choose a reason for hiding this comment

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

LGTM. Two minor suggestions then this is ready to go.

src/phoebus_driver.cpp Outdated Show resolved Hide resolved
src/phoebus_driver.cpp Outdated Show resolved Hide resolved
@jonahm-LANL

This comment was marked as resolved.

Copy link
Collaborator

@Yurlungur Yurlungur left a comment

Choose a reason for hiding this comment

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

Looking good. Some nitpicks below.

src/phoebus_driver.cpp Show resolved Hide resolved
src/phoebus_driver.cpp Outdated Show resolved Hide resolved
src/phoebus_driver.cpp Outdated Show resolved Hide resolved
src/phoebus_driver.cpp Outdated Show resolved Hide resolved
src/phoebus_driver.cpp Outdated Show resolved Hide resolved
Copy link
Collaborator

@Yurlungur Yurlungur left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks for iterating!

v(0, p::velocity(0), k, j, i) * lapse / W -
geom.DetGamma(CellLocation::Cent, 0, k, j, i - 1) *
v(0, p::velocity(0), k, j, i - 1) * lapse1 / W1) /
coords.CellWidthFA(X1DIR, k, j, i);
Copy link
Collaborator

Choose a reason for hiding this comment

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

dividing by FA... probably safe not to guard with robust ratio, but something to keep in mind that this might be a place where we could accidentally divide by 0

@Yurlungur Yurlungur merged commit 6b3254c into main Mar 6, 2024
2 checks passed
@Yurlungur Yurlungur deleted the mg/entropy branch March 6, 2024 20:51
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.

4 participants