Skip to content

+Improve style compliance in config_src/external code#114

Merged
marshallward merged 4 commits into
NOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:stochastics_cleanup
May 8, 2022
Merged

+Improve style compliance in config_src/external code#114
marshallward merged 4 commits into
NOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:stochastics_cleanup

Conversation

@Hallberg-NOAA
Copy link
Copy Markdown
Member

This PR is a series of commits that will bring the code in three of the
config_src/external directories into closer alignment with the MOM6 style guide
at https://github.com/mom-ocean/MOM6/wiki/Code-style-guide. There are also some
stochastics-related code changes in two parameterization/vertical files. All
answers are bitwise identical, but there are some minor changes to interfaces.

The commits in this PR include:

  • e5175bfd1 Style compliance in external/ODA_hooks code
  • f72b143b2 +Style compliance in external/drifters code
  • c1c3fa786 +Revised stochastics code for style compliance

  Revised the stochastics-related code to bring it into closer alignment with
the MOM6 style guide at https://github.com/mom-ocean/MOM6/wiki/Code-style-guide,
and splitting config_src/external/stochastic_physics/stochastic_physics.F90 into
two files (one of which is the new file get_stochy_pattern.F90) to respect the
MOM6 convention that there is only one module per file.  Also renamed two
stochastics-related optional arguments to ePBL_column to better reflect what
they do, and corrected a number of spelling errors in comments in the files that
were being modified.  All answers and output are bitwise identical, but there
are some minor internal interface changes.
  Revised the external/drifters code to bring it into closer alignment with the
MOM6 style guide at https://github.com/mom-ocean/MOM6/wiki/Code-style-guide.
This includes using standard syntax to document variable units, the addition of
'implicit none ; private', explicit public statements, and a licensing statement
to the files that were missing one, and modifications to follow the MOM6 2-point
indenting convention.  All answers are bitwise identical.
  Revised the external/ODA_hooks code to bring it into closer alignment with the
MOM6 style guide at https://github.com/mom-ocean/MOM6/wiki/Code-style-guide.
This includes using standard syntax to document variable units, the addition of
'implicit none ; private', and modifications to follow the MOM6 2-point
indenting convention.  All answers are bitwise identical.
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 21, 2022

Codecov Report

Merging #114 (8029005) into dev/gfdl (5824970) will increase coverage by 0.00%.
The diff coverage is 23.68%.

@@            Coverage Diff            @@
##           dev/gfdl     #114   +/-   ##
=========================================
  Coverage     28.76%   28.77%           
=========================================
  Files           248      249    +1     
  Lines         72987    72968   -19     
=========================================
- Hits          20996    20995    -1     
+ Misses        51991    51973   -18     
Impacted Files Coverage Δ
config_src/external/ODA_hooks/ocean_da_types.F90 0.00% <ø> (ø)
config_src/external/ODA_hooks/write_ocean_obs.F90 0.00% <ø> (ø)
config_src/external/drifters/MOM_particles.F90 0.00% <0.00%> (ø)
...nfig_src/external/drifters/MOM_particles_types.F90 0.00% <ø> (ø)
...external/stochastic_physics/get_stochy_pattern.F90 0.00% <0.00%> (ø)
...external/stochastic_physics/stochastic_physics.F90 0.00% <0.00%> (ø)
...parameterizations/vertical/MOM_diabatic_driver.F90 39.21% <40.00%> (+0.40%) ⬆️
...c/parameterizations/vertical/MOM_energetic_PBL.F90 46.19% <42.85%> (ø)

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 5824970...8029005. Read the comment docs.

@marshallward
Copy link
Copy Markdown
Member

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

@marshallward marshallward merged commit 9b1d382 into NOAA-GFDL:dev/gfdl May 8, 2022
@Hallberg-NOAA Hallberg-NOAA deleted the stochastics_cleanup branch July 16, 2022 09:43
marshallward pushed a commit that referenced this pull request Oct 25, 2023
* add optional run time info in nuopc cap. Author: Jun Wang
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