Skip to content

Commit

Permalink
Use post_product_u for momentum budget diagnostics
Browse files Browse the repository at this point in the history
  Use the new post_product_[uv] and post_product_sum_[uv] routines to simplify
the code calculating derived diagnostics of the momentum budget in
step_MOM_dyn_split, calculate_diagnostic_fields(), horizontal_viscosity(),
vertvisc(), and layered_diabatic().  Also relocated the units for several
diagnostics to the same lines as their conversion factors in some calls to
register_diag_field, to make it easier to spot diagnostics with inconsistent
reported units, and removed variables that are no longer used.  All answers and
diagnostics are bitwise identical.
  • Loading branch information
Hallberg-NOAA authored and marshallward committed Dec 7, 2021
1 parent e756a69 commit c0be5d3
Show file tree
Hide file tree
Showing 5 changed files with 199 additions and 610 deletions.
Loading

0 comments on commit c0be5d3

Please sign in to comment.