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

Miscellaneous Post MHD Tweaks/Fixes #277

Merged
merged 5 commits into from
Mar 28, 2023

Conversation

bcaddy
Copy link
Collaborator

@bcaddy bcaddy commented Mar 27, 2023

Summary

This is a handful of small tweaks and fixes I've been putting off while I worked on debugging MHD. Most are minor but I would like @evaneschneider or @bvillasen to take a look at my change to the grid temperature function. I think there might be other places that should be using MHD energy in computations but I don't know where

List of Changes

  • Have make tidy print out where the results are stored. This isn't obvious so now it tells you
  • Replace straight sum in systemTest::SystemTestRunner::runL1ErrorTest with a Kahan sum to avoid loss of precision.
  • Fix a minor bug in hydro restart test
  • Replace file manipulation methods in systemTest::SystemTestRunner with std::filesystem calls

The number of timesteps differs between the MHD and hydro versions of
the tests but that wasn't acounted for. Now it is.
Thet systemTest::SystemTestRunner class used several, somewhat hacky,
file manipulation methods since we weren't on C++17 when they were
written. Now those have all been replaced with calls from
std::filesystem.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks good to me!

Copy link
Collaborator

Choose a reason for hiding this comment

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

Actually this is a bug - the relevant header files are not included so chemistry builds break. Will add an issue.

@evaneschneider evaneschneider merged commit f10fe8e into cholla-hydro:dev Mar 28, 2023
@bcaddy bcaddy deleted the dev-tidyAndSumTweaks branch April 10, 2023 18:29
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.

2 participants