-
Notifications
You must be signed in to change notification settings - Fork 21
Refactor H isotope charge exchange to use the new reactions framework. #398
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
base: master
Are you sure you want to change the base?
Conversation
…mjuelHydIsotopeReaction.
| * @return std::vector<std::string> vector of keys | ||
| */ | ||
| template <typename T> | ||
| static inline std::vector<std::string> str_keys(const std::map<std::string, T>& map) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C++20 has std::views::keys -- not for this PR, but worth thinking if we can move to C++20 @bendudson ?
… functions in Reaction subclasses.
… T ( matches previous HCX implementation).
…names and return single matches.
…diagnostic values in the 1D-recycling int test.
…ssociated with compiler optimisation.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #398 +/- ##
==========================================
+ Coverage 26.41% 27.44% +1.03%
==========================================
Files 90 89 -1
Lines 8105 8208 +103
Branches 1133 1159 +26
==========================================
+ Hits 2141 2253 +112
+ Misses 5745 5725 -20
- Partials 219 230 +11 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Some implementation details:
RateHelperto cope with (Amjuel) fits that are a function of (T), (E,T) and (n,T).RateHelperis templated on the param types, butReactiondecides which to use at runtime. This allows subclasses to (for instance) read the type from a json file.ReactionParseris modified to cope with momentum and energy transfer in symmetric reactions (e.g. h + h+ -> h+ + h)tests/integrated/1D-recycling/runtesthas been modified to significantly tighten up the tolerances as far as possible and regression data is now stored separately depending on the compiler optimisation level (which is extracted from the run output).ToDo: