Add units to the descriptions of 79 variables #613
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit improves the documentation of the remaining real variables with previously undocumented units in the framework directory, with some other similar unit documentation improvements in other files. Units were added to comments describing about 79 real variables in 4 framework modules,
atmos_ocean_fluxes.F90
for 2 drivers,MOM_oda_incupd.F90
,MOM_oda_driver.F90
andMOM_variables.F90
.The variable
nhours_incupd
ininitialize_oda_incupd()
was renamed toincupd_timescale
and the factor of 3600.0 that convertsODA_INCUPD_NHOURS
from hours into seconds was moved from where this variable is used into the scale argument where it is set to help document the meaning and units of this variable as simply and clearly as possible.The unused variable
smb
was removed fromShelf_main()
inice_shelf_driver.F90
.The internal variable
tmp
inRGC_initialize_sponges()
was renamedrho
to reflect its contents, and its contents and units are now described in a comment.Although the units have been added to the description of
MEKE_vec
as though it is being used in a dimensionally consistent way, I suspect that this might actually be in MKS units, in which case a unit conversion factor might be needed, and a comment has been added to note this. However, the machine learning code that is used to set this array comes from an external package that is not being used yet at GFDL, so it is not clear what code should be examined to address this question.A comment was added in
set_up_global_tgrid()
noting a unit rescaling factor that appears to be missing from a dimensional constant.All answers are bitwise identical, and for the most part only comments are changed, although two internal variables were renamed.