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

MOM6: +Document MOM_io routines #1301

Merged
merged 5 commits into from
Jan 27, 2021
Merged

Conversation

Hallberg-NOAA
Copy link
Collaborator

This PR includes a commits that completes the documentation of the interfaces
for all routines that are accessed via MOM_io.F90 and MOM_io_infra.F90. There
are some localized changes to I/O interfaces to better fit with their use in
MOM6. All answers and output files are bitwise identical. The commits in this
PR include:

  Removed module use statements for unused subroutines from MOM_io of for the
entire netcdf module.  All answers are bitwise identical.
  Added explicit interfaces to field_size, check_nml_error, open_namelist_file,
write_version_number and get_filename_appendix to MOM_io.F90.  Added explicit
interfaces to write_metadata, get_file_times, get_axis_data and get_file_times
as well as the newly named routines check_namelist_error, check_namelist_error,
write_version, get_field_size to MOM_io_infra.F90.  MOM_read_data was expanded
to work with regions of 2D fields.  MOM_grid_initialize and MOM_restart were
altered to use the new interfaces, and support for non-domain-decomposed 2-d,
3-d and 4-d arrays was dropped from the MOM_restart module.  All answers are
bitwise identical, but there are some expanded capabilities.
  Modified the module use statements for netcdf to explicitly list the routines
and constants that are used.  Also added comments documenting the purpose of the
encoding constants that MOM_io makes available.  Also added a missing NF90_close
call to Surface_Bands_by_data_override.  All answers are bitwise identical.
@codecov-io
Copy link

codecov-io commented Jan 27, 2021

Codecov Report

Merging #1301 (0977e13) into dev/gfdl (d6fa98b) will increase coverage by 0.01%.
The diff coverage is 46.34%.

Impacted file tree graph

@@             Coverage Diff              @@
##           dev/gfdl    #1301      +/-   ##
============================================
+ Coverage     45.91%   45.93%   +0.01%     
============================================
  Files           233      233              
  Lines         71995    72052      +57     
============================================
+ Hits          33058    33094      +36     
- Misses        38937    38958      +21     
Impacted Files Coverage Δ
config_src/solo_driver/user_surface_forcing.F90 0.00% <ø> (ø)
src/ALE/MOM_regridding.F90 30.76% <ø> (ø)
src/core/MOM_open_boundary.F90 30.76% <ø> (ø)
src/diagnostics/MOM_sum_output.F90 63.88% <0.00%> (ø)
src/framework/MOM_diag_remap.F90 92.89% <ø> (ø)
src/framework/MOM_restart.F90 37.72% <0.00%> (+0.36%) ⬆️
src/initialization/MOM_coord_initialization.F90 58.16% <ø> (ø)
src/initialization/MOM_fixed_initialization.F90 70.66% <ø> (ø)
src/initialization/MOM_shared_initialization.F90 39.71% <ø> (ø)
src/tracer/MOM_tracer_Z_init.F90 0.00% <0.00%> (ø)
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d6fa98b...0977e13. Read the comment docs.

Copy link
Collaborator

@adcroft adcroft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adcroft adcroft merged commit 790ffbe into mom-ocean:dev/gfdl Jan 27, 2021
@Hallberg-NOAA Hallberg-NOAA deleted the IO_framework branch July 30, 2021 18:05
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