Skip to content

Main to dev/gfdl#347

Merged
marshallward merged 42 commits into
dev/gfdlfrom
main
Apr 6, 2023
Merged

Main to dev/gfdl#347
marshallward merged 42 commits into
dev/gfdlfrom
main

Conversation

@marshallward
Copy link
Copy Markdown
Member

Includes recent updates from NCAR.

(NOTE: This PR is primarily for documentation and testing. Do not update the branch against dev/gfdl or merge it through GitHub.)

gustavo-marques and others added 30 commits July 26, 2022 09:58
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).
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
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
Copy link
Copy Markdown

codecov Bot commented Apr 4, 2023

Codecov Report

Merging #347 (1e54bed) into dev/gfdl (ceb4c92) will increase coverage by 0.03%.
The diff coverage is 16.50%.

@@             Coverage Diff              @@
##           dev/gfdl     #347      +/-   ##
============================================
+ Coverage     37.16%   37.19%   +0.03%     
============================================
  Files           265      263       -2     
  Lines         74508    73147    -1361     
  Branches      13839    13625     -214     
============================================
- Hits          27692    27209     -483     
+ Misses        41722    40926     -796     
+ Partials       5094     5012      -82     
Impacted Files Coverage Δ
src/framework/posix.F90 50.00% <ø> (ø)
src/parameterizations/vertical/MOM_CVMix_shear.F90 11.11% <0.00%> (-0.37%) ⬇️
src/tracer/ideal_age_example.F90 41.96% <17.07%> (-19.64%) ⬇️
src/diagnostics/MOM_obsolete_params.F90 69.66% <100.00%> (-1.31%) ⬇️
src/tracer/MOM_tracer_flow_control.F90 24.64% <100.00%> (-0.36%) ⬇️

... and 121 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@marshallward
Copy link
Copy Markdown
Member Author

marshallward commented Apr 5, 2023

Gaea regression: https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/18748 ✔️

All but the Intel run tests have passed. I have verified these independently with manual testing. I will continue to submit the tests to our CI until they have formally passed, but for now I will take this as permission to do the merge. (Everything is now passing.)

There was a minor conflict to resolve in the CVMix layer related to the Ri smoothing. The new counter and the changes to comments around the counter had to be resolved.

@marshallward marshallward merged commit fc823f5 into dev/gfdl Apr 6, 2023
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.

6 participants