-
Notifications
You must be signed in to change notification settings - Fork 245
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
NCAR to main candidate branch (2023-3-02) #1594
NCAR to main candidate branch (2023-3-02) #1594
Conversation
Address comment from reviewer by adding units to covTS and varS.
* Add ``implicit none ; private`` to this module; * Put module variables into the control structure for this module; * Add the description of the units for all real variables; * Add a consistent two-point indent throughout the module . TODO: Without further modifications, adding ``private`` to the control structure of this module will break the model. Currently, MOM.F90 needs access to ``use_stoch_eos``, ``stanley_coeff``, and some of the diagnostic ids.
…the ideal age module. This PR also adds the ability to use the actual BL depth that is diagnosed by the active BL scheme inside the ideal age module (for all ideal age tracers).
"boundary layer" instead.
Bring in latest main changes (GFDL to main 2022-07-21)
…-main-2022-08-10 Merge GFDL to main (2022-08-10)
In preparation for implementing the option to apply a vertical smooth filter in the Richardson number multiple times, the parameter SMOOTH_RI (logical) was renamed to N_SMOOTH_RI (interger). If N_SMOOTH_RI = 0 (default), smoothing is not performed. If N_SMOOTH_RI > 0, smoothing will be applied N_SMOOTH_RI times.
Currently, there are two diagnostics related to the gradient Richarson number and these are described as follows: * ri_grad_shear : Gradient Richarson number used by MOM_CVMix_shear module; * ri_grad_shear_smooth : Smoothed gradient Richarson number used by MOM_CVMix_shear module. The description for ri_grad_shear is misleading. If smoothing is applied, ri_grad_shear *is not* the RI number used by MOM_CVMix_shear module. In this commit. I propose to avoid this potential confusion by renaming ri_grad_shear_smooth to ri_grad_shear_orig and, if N_SMOOTH_RI > 0, use ri_grad_shear to store the smoothed profiles. * ri_grad_shear_orig : Original gradient Richarson number, before smoothing was applied. This is part of the MOM_CVMix_shear module and only available when N_SMOOTH_RI > 0. No change in answers for GMOM.
This commit adds the option to smooth the gradient Richardson number multiple times using a 1-2-1 filter. The number of times that the filter is applied is controlled by parameter N_SMOOTH_RI.
The correct order is lon_min lon_max lat_min lat_max ... and not lat_min lat_max lon_min lon_max.
Improvements in the gradient Ri # calculation/diagnosis (MOM_CVMix_shear)
Fix string order in the instructions for defining regional_section
add ML tracer to ideal age module
Testing to see if GH actions is failing due to MPI installation
(*) Merge GFDL to main (2022-10-27)
This patch fixes two issues in the POSIX API. The `siglongjmp` interface was referencing the wrong symbol (`longjmp`). While this did not seem to cause any issues, possibly due to some shared definitions on glibc/BSD platforms, the error was correctly detected by the Cray compiler. This patch corrects the C symbol name. The `sigsetjmp_missing` function, as a default replacement for a missing `sigsetjmp`, was also defined without a return value, since it always returns an error if called at runtime. The Cray compiler raised a warning about this, so we now assign a return value of -1, although it is never used. Thanks to Jim Edwards for reporting these errors.
Codecov Report
@@ Coverage Diff @@
## main #1594 +/- ##
==========================================
- Coverage 37.22% 37.19% -0.04%
==========================================
Files 263 263
Lines 73074 73147 +73
Branches 13608 13625 +17
==========================================
+ Hits 27202 27207 +5
- Misses 40866 40928 +62
- Partials 5006 5012 +6
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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 have visually inspected all of the changes in this PR, and apart from a handful of minor inconsistencies with the MOM6 style guide and one possible bug in ideal_age_example.F90 and a missing obsolete_logical()
call for "SMOOTH_RI" in MOM_obsolete_params.F90 (see the specific comments for details), these changes all look good to me. Moreover, these changes at least partially resolve several outstanding issues, including #1578 and NCAR#230.
The specific changes I am requesting should be very easy to address. We still need to run them through the GFDL pipeline testing (which we will trigger after the possible bug on lines 402 and 403 of ideal_age_example.F90 is addressed and an obsolete_logical()
call is added for SMOOTH_RI) before formal approval from GFDL, but I would be very surprised if this turned up anything.
@alperaltuntas when you do the modification of code, can you help me remove the leading white space at |
Done, thanks. |
Thank you @alperaltuntas, all of my comments on the previous version have been nicely addressed. We still need to run our pipeline regression tests (and at the moment our computer is not in a good way, so this might take some doing), but I expect that we will be giving our approval form GFDL after these tests have passed. |
We need to have our formal pipeline tests pass before we can issue our approval.
we got bitwise identical results in UFS, and John Stephen confirmed the same thing in N. Atlantic regional setting. |
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 will be on annual leave for a while starting tomorrow, so here I click the approval before GFDL's pipeline test
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 approve these changes.
This has passed our regression test, so GFDL can approve it now. |
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.
COAPS approves
Since we are pushing up against some time barriers on our end, I am going to merge this on behalf of @alperaltuntas. Thanks as always to everyone. |
This PR includes the following bug fixes and features:
New parameters:
DO_BL_RESIDENCE
USE_REAL_BL_DEPTH
N_SMOOTH_RI
(previouslySMOOTH_RI
)