-
Notifications
You must be signed in to change notification settings - Fork 33
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
add a Gaussian temperature interpolation for the plume feature #657
add a Gaussian temperature interpolation for the plume feature #657
Conversation
|
The pictures look really cool! I will do my best to do a review in the coming week. |
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.
Looks good, just two minor comments. Can you also update the test reference result? Otherwise good to go.
|
||
prm.declare_entry("depths", Types::Array(Types::Double(0)), | ||
"The temperature at the center of this feature in degree Kelvin." | ||
"If the value is below zero, the an adiabatic temperature is used."); |
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.
I don't think this description is correct.
"plume temperature and the outside temperature a smaller values has to be chosen " | ||
"for the gaussian sigmas."); | ||
|
||
// TODO: assert that the three have the same length |
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.
This todo belongs in parse_entries, and it looks like it is already done. I think you can just remove this.
d574284
to
8674609
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #657 +/- ##
==========================================
- Coverage 92.85% 92.78% -0.07%
==========================================
Files 105 106 +1
Lines 7176 7222 +46
==========================================
+ Hits 6663 6701 +38
- Misses 513 521 +8
... and 2 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
hmm, I think you still need to include include/world_builder/features/feature_utilities.h |
I also looked at the test output of the changed test (in higher resolution): The two main differences are that the very tip is now included as well in the sphere at the top (which is a rounding off question somewhere somehow I suspect), the other one is that the base of the plume tail is drawn to the max depth of the plume feature, even if it's below the deepest cross section given (which is a clear bugfix, because otherwise the max depth would be useless). |
Sounds good to me. I think it should be good to go as soon as you include include/world_builder/features/feature_utilities.h |
934505c
to
19f3dc4
Compare
19f3dc4
to
50921e5
Compare
Okay, after several tries I think I now include all the things I need to include. |
Can you still add a changelog entry in a follow up pull request? |
Sure. I thought this would just be a part of the plume feature. Do you want me to add it there or make a separate entry? |
hmm, it is adding a new temperature model to the plume feature, so in that sense I think it is a notable change. I will leave it up to you. |
I am here adding two images of what the test cases would look like with a grid file (but I thought they'd be faster to run with gwd-dat):
Cartesian:
Spherical: