Skip to content
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

Make the US argument to MOM_domains_init optional #272

Conversation

Hallberg-NOAA
Copy link

This commit makes the unit_scale_type argument US to MOM_domains_init() and gen_auto_mask_table() optional and moves it to the end of the argument list, so that coupled or ice-ocean models using SIS2 will compile with the proposed updates to the main branch of MOM6 from dev/ncar. Because MOM6 and SIS2 use some common framework code but are managed in separate github repositories, we need to use optional argument to allow a single version of SIS2 to work across changes to MOM6 interfaces. Because the TOPO_CONFIG parameter as used in SIS2 has a default value, there is an alternative call to get_param() for TOPO_CONFIG with a default when MOM_domains_init() is called with a domain_name argument. Also added missing scale arguments to get_param() calls for MINIMUM_DEPTH and MASKING_DEPTH. This commit also adds or corrects units in the comments describing 4 recently added or modified variables. All answers are bitwise identical in any cases that worked before (noting that some cases using SIS2 would not even compile before this fix).

  This commit makes the unit_scale_type argument US to MOM_domains_init and
gen_auto_mask_table optional and moves it to the end of the argument list, so
that coupled or ice-ocean models using SIS2 will compile with the proposed
updates to the main branch of MOM6 from dev/ncar.  Because MOM6 and SIS2 use
some common framework code but are managed in separate github repositories, we
need to use optional argument to allow a single version of SIS2 to work across
changes to MOM6 interfaces.  Because the TOPO_CONFIG parameter as used in SIS2
has a default value, there is an alternative call to get_param for TOPO_CONFIG
with a default when MOM_domains_init is called with a domain_name argument.
Also added missing scale arguments to get_param calls for MINIMUM_DEPTH and
MASKING_DEPTH.  This commit also adds or corrects units in the comments
describing 4 recently added or modified variables.  All answers are bitwise
identical in any cases that worked before (noting that some cases using SIS2
would not even compile).
@Hallberg-NOAA Hallberg-NOAA force-pushed the fix_dev_ncar_20240319 branch from 1ae2f6b to de59adf Compare March 20, 2024 16:09
@codecov-commenter
Copy link

codecov-commenter commented Mar 20, 2024

Codecov Report

Attention: Patch coverage is 30.00000% with 14 lines in your changes are missing coverage. Please review.

Project coverage is 37.40%. Comparing base (13fbeb7) to head (a538cc0).

❗ Current head a538cc0 differs from pull request most recent head de59adf. Consider uploading reports for the commit de59adf to get more accurate results

Files Patch % Lines
src/framework/MOM_domains.F90 25.00% 10 Missing and 2 partials ⚠️
src/ice_shelf/MOM_ice_shelf.F90 0.00% 1 Missing ⚠️
src/ocean_data_assim/MOM_oda_driver.F90 0.00% 1 Missing ⚠️
Additional details and impacted files
@@                      Coverage Diff                      @@
##           dev/ncar-candidate-240319     #272      +/-   ##
=============================================================
- Coverage                      37.40%   37.40%   -0.01%     
=============================================================
  Files                            270      270              
  Lines                          79908    79914       +6     
  Branches                       14858    14860       +2     
=============================================================
+ Hits                           29893    29894       +1     
- Misses                         44469    44471       +2     
- Partials                        5546     5549       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@alperaltuntas alperaltuntas merged commit e75d1da into NCAR:dev/ncar-candidate-240319 Mar 20, 2024
10 checks passed
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.

3 participants