-
Notifications
You must be signed in to change notification settings - Fork 6
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
Oscar/wet dep integration #303
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #303 +/- ##
==========================================
+ Coverage 96.27% 96.41% +0.14%
==========================================
Files 41 41
Lines 8365 8593 +228
==========================================
+ Hits 8053 8285 +232
+ Misses 312 308 -4 ☔ View full report in Codecov by Sentry. |
0424c78
to
d4a3009
Compare
86c7a90
to
5d5119b
Compare
b346ed2
to
ef8870b
Compare
… aero_model_wetdep.
8a8ae57
to
eff10eb
Compare
src/mam4xx/modal_aer_opt.hpp
Outdated
@@ -26,7 +26,7 @@ constexpr int ntot_amode = mam4::AeroConfig::num_modes(); | |||
// FIXME: is top_lev equal to 1 in aerosol optics ? | |||
constexpr int top_lev = 0; | |||
// | |||
constexpr int pcnst = aero_model::pcnst; | |||
// constexpr int pcnst = mam4::pcnst; |
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.
Can probably delete this commented out line of code.
acc_spec_in_ait, | ||
// outputs | ||
dgncur_i.data(), dgncur_c, ptend_q_k.data(), | ||
dqqcwdt_k.data()); |
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.
Sometimes data layout is not very obvious when we use .data()
in the output variables. We don't need to change if it is working but just a note about revisiting these in the source code when time allows.
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.
@singhbalwinder , I agree we should re-visit the use of data() sometime. Using data() allows the function being called to use a simple Real* parameter. But it means that the Kokkos::view has to have a stride of 1. This is true for 1D views but 1D sub-views of 2D views might not have stride 1 which can cause hard to diagnose errors.
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 agree with both of you. I have created issue #322.
We are using this branch in PR # 2848
List of variables of the routine
aero_model_wetdep
Inputs:
cldt
cldn
rprdsh
pbuf_get_index('RPRDSH')
rprddp
evapcdp
evapcsh
dp_frac
sh_frac
icwmrdp
icwmrsh
evapr
dlf
prain
In/Out:
dgnum
dgncur_a
qaerwat
wetdens
ptend_lq
qqcw
Output:
aerdepwetis
aerdepwetcw
@singhbalwinder,
In the tables above, could you please add comments indicating which process in EMAXX is responsible for computing the specific variables? This information can be added in the 'Comments' column.
Issue:
This code that produces this race condition is not needed by the eamxx-mam4xx interface. I commented out this code.