Skip to content

+Rescaled flux arguments to tracer_vertdiff()#17

Merged
marshallward merged 2 commits into
NOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:tracer_sfc_flux_rescale
Dec 5, 2021
Merged

+Rescaled flux arguments to tracer_vertdiff()#17
marshallward merged 2 commits into
NOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:tracer_sfc_flux_rescale

Conversation

@Hallberg-NOAA
Copy link
Copy Markdown
Member

Changed the units of the optional surface and bottom tracer fluxes, sink rate, and
bottom tracer reservoir arguments to tracer_vertdiff() and tracer_vertdiff_Eulerian()
to fully rescaled units (like [Conc R Z T-1 ~> mol m-2 s-1] and [Z T-1 ~> m s-1]) for
greater dimensional consistency testing.

Only the two CFC packages are using the flux arguments, so these fluxes were rescaled
in those modules as well. Several unused variables or unnecessary pointers were removed
from the CFC tracer modules, and some comments were revised or added to indicate the
dimensions of a number of internal variables in these same modules.

All answers are bitwise identical in the MOM6-examples regression suite, and only
dimensional rescaling factors are changed (so nothing will have changed without
any rescaling), but it should be noted that testing of the CFC tracer packages
is less comprehensive than would be ideal.

  Changed the units of the optional surface and bottom tracer fluxes, sink rate,
and bottom tracer reservoir arguments to tracer_vertdiff() and
tracer_vertdiff_Eulerian() to fully rescaled units (like [Conc R Z T-1] and
[Z T-1]) for greater dimensional consistency testing.  Only the two CFC packages
are using the flux arguments, so they were rescaled in those modules as well.
Several unused variables or unnecessary pointers were removed from the CFC
tracer modules, and some comments were revised or added to indicate the
dimensions of a number of internal variables in these same modules.  All answers
are bitwise identical in the MOM6-examples regression suite, and only
dimensional rescaling factors are changed (so nothing will have changed without
any rescaling), but it should be noted that testing of the CFC tracer packages
is less comprehensive than would be ideal.
@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 29, 2021

Codecov Report

Merging #17 (2dbd055) into dev/gfdl (585cc70) will increase coverage by 0.00%.
The diff coverage is 6.06%.

Impacted file tree graph

@@            Coverage Diff            @@
##           dev/gfdl      #17   +/-   ##
=========================================
  Coverage     29.16%   29.17%           
=========================================
  Files           240      240           
  Lines         71496    71488    -8     
=========================================
  Hits          20854    20854           
+ Misses        50642    50634    -8     
Impacted Files Coverage Δ
src/tracer/MOM_OCMIP2_CFC.F90 0.00% <0.00%> (ø)
src/tracer/MOM_tracer_diabatic.F90 14.76% <0.00%> (+0.09%) ⬆️
src/tracer/MOM_CFC_cap.F90 19.70% <9.09%> (+0.47%) ⬆️
src/core/MOM_forcing_type.F90 47.46% <20.00%> (ø)

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 585cc70...2dbd055. Read the comment docs.

@marshallward
Copy link
Copy Markdown
Member

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

@marshallward marshallward merged commit a44e460 into NOAA-GFDL:dev/gfdl Dec 5, 2021
@Hallberg-NOAA Hallberg-NOAA deleted the tracer_sfc_flux_rescale branch January 3, 2022 13:35
@Hallberg-NOAA Hallberg-NOAA added the refactor Code cleanup with no changes in functionality or results label Feb 1, 2022
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