Skip to content

MOM6 code cleanup#763

Merged
adcroft merged 15 commits into
mom-ocean:dev/gfdlfrom
Hallberg-NOAA:code_cleanup
May 7, 2018
Merged

MOM6 code cleanup#763
adcroft merged 15 commits into
mom-ocean:dev/gfdlfrom
Hallberg-NOAA:code_cleanup

Conversation

@Hallberg-NOAA
Copy link
Copy Markdown
Collaborator

This is a series of 15 commits that clean up or improve the documentation in widespread locations throughout the MOM6 code. Included commits include:

  Replaced 'if(' with 'if (' and 'elseif(' with 'elseif (' throughout the MOM6
code base to follow MOM6 coding conventions.  All answers are bitwise identical.
  Replace the older Fortran syntax '.ge.', '.gt.', '.lt.', and '.le.' with the
clearer and more succinct syntax '>=', '>', '<', and '<='.  All answers are
bitwise identical.
  Replace the older Fortran syntax '.eq.', and '.ne.' with the clearer and more
succinct syntax '==' and '/='.  All answers are bitwise identical.
  Added dOxyGen comments for all of the subroutines and their arguments in the
PXM_functions and regrid_... modules in src/ALE.  Also shortened the name of
several variables.  All answers are bitwise identical.
  Combined i- and j- loops with the same interior code on the same line.  All
answers are bitwise identical.
  Renamed several ..._coeffients variables as ..._coef, for brevity of
expressions.  All answers are bitwise identical.
  Added dOxyGen comments for all of the subroutines and their arguments in the
coord_... modules in ALE.  Also shortened the name of several variables.  All
answers are bitwise identical.
  Changed 'call sub (...)' to 'call sub(...)' in several places.  All answers
are bitwise identical, and only white-space is changed.
  Changed 'array (...)' to 'array(...)' and 'call sub (...)' to 'call sub(...)'
in numerous places in MOM_ice_shelf.F90.  All answers are bitwise identical,
and only white-space is changed.
  Semicolons are not proper punctuation to end a sentence; instead they connect
independent clauses.  MOM6 is written in Fortran, not C; therefore trailing
semicolons are unnecssary and have been removed.  All answers are bitwise
identical.
  Added dOxyGen comments for all routines and arguments in MOM_debugging.F90.
All answers are bitwise identical.
  Added dOxyGen comments for all routines and arguments in MOM_checksums.F90.
All answers are bitwise identical.
  Added dOxyGen comments for all routines and arguments in MOM_safe_alloc.F90.
All answers are bitwise identical.
  Added dOxyGen comments for all routines and arguments in MOM_file_parser.F90.
All answers are bitwise identical.
@adcroft
Copy link
Copy Markdown
Collaborator

adcroft commented May 7, 2018

@adcroft adcroft merged commit b05e55d into mom-ocean:dev/gfdl May 7, 2018
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