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

Small history fix for FMKS without MHD #183

Merged
merged 4 commits into from
Nov 2, 2023
Merged

Small history fix for FMKS without MHD #183

merged 4 commits into from
Nov 2, 2023

Conversation

AstroBarker
Copy link
Collaborator

When I wrote the history stuff to compute e.g., mass accretion rate and magnetic flux, I checked that we did indeed do_hydro .... but not that we are doing MHD. This caused the torus problem without MHD to crash. This should fix that.

@AstroBarker AstroBarker added the bug Something isn't working label Oct 26, 2023
Comment on lines 63 to 64
const bool do_hydro = pin->GetBoolean("physics", "hydro");
if (params.hasKey("xh") && do_hydro) {
const bool do_mhd = pin->GetOrAddBoolean("fluid", "mhd", false);
if (params.hasKey("xh") && do_mhd) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should you check both hydro and mhd? Just to be safe?

@Yurlungur Yurlungur merged commit 55e6c26 into main Nov 2, 2023
2 checks passed
@Yurlungur Yurlungur deleted the blb/history_fix branch November 2, 2023 00:06
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