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

Refactored solo_driver/MOM_driver.F90 #1520

Merged
merged 2 commits into from
Oct 15, 2021

Conversation

Hallberg-NOAA
Copy link
Collaborator

Refactored solo_driver/MOM_driver.F90 to move logically self-contained blocks
of code into separate subroutines within this file to improve the readability of
the code and to reduce the number of global variables. This started out as an
exercise to explore the use of the F2008 block / end block construct to reduce
the scope of variables, but the code ended up being cleaner just using
traditional subroutines contained in this file. All answers are bitwise
identical and all output files are unaltered.

  Refactored solo_driver/MOM_driver.F90 to move logically self-contained blocks
of code into separate subroutines within this file to improve the readability of
the code and to reduce the number of global variables.  This started out as an
exercise to explore the use of the F2008 block / end block construct to reduce
the scope of variables, but the code ended up being cleaner just using
traditional subroutines contained in this file.  All answers are bitwise
identical and all output files are unaltered.
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.

Much cleaner! Will leave it to @marshallward to approve too

@codecov
Copy link

codecov bot commented Oct 13, 2021

Codecov Report

Merging #1520 (c92f301) into dev/gfdl (85afd24) will increase coverage by 0.00%.
The diff coverage is 81.13%.

❗ Current head c92f301 differs from pull request most recent head de0f080. Consider uploading reports for the commit de0f080 to get more accurate results
Impacted file tree graph

@@            Coverage Diff            @@
##           dev/gfdl    #1520   +/-   ##
=========================================
  Coverage     29.06%   29.07%           
=========================================
  Files           239      239           
  Lines         71691    71699    +8     
=========================================
+ Hits          20840    20845    +5     
- Misses        50851    50854    +3     
Impacted Files Coverage Δ
config_src/drivers/solo_driver/MOM_driver.F90 68.01% <81.13%> (-0.19%) ⬇️

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 85afd24...de0f080. Read the comment docs.

Copy link
Collaborator

@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.

I also like the new function separation.

@marshallward
Copy link
Collaborator

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

@marshallward marshallward merged commit 39c0c34 into mom-ocean:dev/gfdl Oct 15, 2021
@Hallberg-NOAA Hallberg-NOAA deleted the refactor_solo_driver branch November 27, 2021 11:23
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