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

+Refactor writing the vertical_coordinate file #96

Merged

Conversation

Hallberg-NOAA
Copy link
Member

Rearrange how the vertical_coordinate file is written, to avoid an unnecessary
repetition of the writing of this file, and to prepare for the Hybgen grid
generator code to write its own version of this file. The specific changes
include:

  • Added the new subroutine write_regrid_file() to write the vertical_coordinate
    file when in ALE mode.

  • Relocated the code to write the vertical_coordinate file in ALE mode
    from ALE_writeCoordinateFile to write_regrid_file()

  • Moved the call to write_vertgrid_file() into initialize_MOM(), and do not
    call it when USE_REGRIDDING=True, since in this case this file will be
    rewritten again when write_regrid_file() is called.

  • Eliminated the write_geom and output_dir arguments to MOM_initialize_coord()

All answers and output are bitwise identical.

  Rearrange how the vertical_coordinate file is written, to avoid an unnecessary
repetition of the writing of this file, and to prepare for the Hybgen grid
generator code to write its own version of this file.  The specific changes
include:

 - Added the new subroutine write_regrid_file() to write the vertical_coordinate
   file when in ALE mode.

 - Relocated the code to write the vertical_coordinate file in ALE mode
   from ALE_writeCoordinateFile to write_regrid_file()

 - Moved the call to write_vertgrid_file() into initialize_MOM(), and do not
   call it when USE_REGRIDDING=True, since in this case this file will be
   rewritten again when write_regrid_file() is called.

 - Eliminated the write_geom and output_dir arguments to MOM_initialize_coord()

All answers and output are bitwise identical.
@codecov
Copy link

codecov bot commented Mar 23, 2022

Codecov Report

Merging #96 (22194b3) into dev/gfdl (08582ee) will increase coverage by 0.00%.
The diff coverage is 62.96%.

@@            Coverage Diff            @@
##           dev/gfdl      #96   +/-   ##
=========================================
  Coverage     28.98%   28.98%           
=========================================
  Files           246      246           
  Lines         72348    72354    +6     
=========================================
+ Hits          20967    20970    +3     
- Misses        51381    51384    +3     
Impacted Files Coverage Δ
src/ocean_data_assim/MOM_oda_driver.F90 0.00% <0.00%> (ø)
src/ALE/MOM_ALE.F90 34.52% <50.00%> (-0.10%) ⬇️
src/ALE/MOM_regridding.F90 21.71% <50.00%> (+0.37%) ⬆️
src/core/MOM.F90 58.47% <100.00%> (+0.05%) ⬆️
src/initialization/MOM_coord_initialization.F90 42.85% <100.00%> (-0.76%) ⬇️

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 08582ee...22194b3. Read the comment docs.

@marshallward
Copy link
Member

marshallward commented Apr 1, 2022

Gaea regression: https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/jobs/76206 ✔️ 🟡

The location of volcello in available_diags.000000 was moved but otherwise unchanged.

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.

2 participants