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

Clean up non-standard syntax and whitespace #59

Merged
merged 1 commit into from
Jan 10, 2022

Conversation

Hallberg-NOAA
Copy link
Member

Eliminated a number of instances of non-standard syntax from that described in
https://github.com/NOAA-GFDL/MOM6/wiki/Code-style-guide. The changes include
enforcing the MOM6-standard 2-point indentation convention, replacing 'if(A)'
with 'if (A)', and changing logical comparison syntax like '.gt.' to '>' or
'.eq.' to '=='. An old commented out block of code for debugging (detected by
its use of non-standard syntax) was also eliminated. All answers and output are
bitwise identical.

  Eliminated a number of instances of non-standard syntax from that described in
https://github.com/NOAA-GFDL/MOM6/wiki/Code-style-guide.  The changes include
enforcing the MOM6-standard 2-point indentation convention, replacing 'if(A)'
with 'if (A)', and changing logical comparison syntax like '.gt.' to '>' or
'.eq.' to '=='.  An old commented out block of code for debugging (detected by
its use of non-standard syntax) was also eliminated.  All answers and output are
bitwise identical.
@codecov
Copy link

codecov bot commented Jan 8, 2022

Codecov Report

Merging #59 (2ac4fe6) into dev/gfdl (f7a2254) will decrease coverage by 0.00%.
The diff coverage is 32.20%.

Impacted file tree graph

@@             Coverage Diff              @@
##           dev/gfdl      #59      +/-   ##
============================================
- Coverage     28.95%   28.95%   -0.01%     
============================================
  Files           242      242              
  Lines         71557    71556       -1     
============================================
- Hits          20717    20716       -1     
  Misses        50840    50840              
Impacted Files Coverage Δ
src/ALE/MOM_ALE.F90 34.68% <0.00%> (ø)
src/core/MOM_continuity_PPM.F90 39.46% <0.00%> (ø)
src/core/MOM_open_boundary.F90 20.08% <0.00%> (ø)
src/core/MOM_variables.F90 28.57% <ø> (ø)
src/ice_shelf/MOM_ice_shelf_diag_mediator.F90 0.00% <0.00%> (ø)
src/ocean_data_assim/MOM_oda_driver.F90 0.00% <0.00%> (ø)
...c/parameterizations/lateral/MOM_internal_tides.F90 0.00% <0.00%> (ø)
...rc/parameterizations/lateral/MOM_tidal_forcing.F90 34.89% <0.00%> (ø)
src/parameterizations/vertical/MOM_CVMix_KPP.F90 0.99% <0.00%> (ø)
...rc/parameterizations/vertical/MOM_tidal_mixing.F90 2.09% <0.00%> (ø)
... and 10 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 f7a2254...2ac4fe6. Read the comment docs.

Copy link
Member

@marshallward marshallward left a comment

Choose a reason for hiding this comment

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

Approval on behalf of @MJHarrison-GFDL

@marshallward marshallward merged commit d838ccd into NOAA-GFDL:dev/gfdl Jan 10, 2022
@marshallward
Copy link
Member

And I merged the wrong PR.... well, let me back-verify this one.

@marshallward
Copy link
Member

marshallward commented Jan 10, 2022

This was accidentally merged before review and regression testing.

Post-merge regriession testing: https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/14551 ✔️

@Hallberg-NOAA Hallberg-NOAA added the refactor Code cleanup with no changes in functionality or results label Feb 1, 2022
@Hallberg-NOAA Hallberg-NOAA deleted the enforce_std_syntax branch March 25, 2022 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Code cleanup with no changes in functionality or results
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants