Skip to content

Commit

Permalink
+Set thickness_units for use by deta_dt diagnostic
Browse files Browse the repository at this point in the history
  Added a call to set thickness_units, which are used in the units description
for the diagnostic deta_dt, which was recently added by
#99, but with an uninitialized variable
being used for the units description.  This changes contents of one entry in the
MOM_available_diags, which will once again reproduce across runs and compilers.
All solutions are bitwise identical.
  • Loading branch information
Hallberg-NOAA authored and marshallward committed Apr 21, 2022
1 parent 03c7485 commit e73c231
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/MOM_dynamics_split_RK2.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1324,6 +1324,7 @@ subroutine initialize_dyn_split_RK2(u, v, h, uh, vh, eta, Time, G, GV, US, param
call cpu_clock_end(id_clock_pass_init)

flux_units = get_flux_units(GV)
thickness_units = get_thickness_units(GV)
CS%id_uh = register_diag_field('ocean_model', 'uh', diag%axesCuL, Time, &
'Zonal Thickness Flux', flux_units, conversion=GV%H_to_MKS*US%L_to_m**2*US%s_to_T, &
y_cell_method='sum', v_extensive=.true.)
Expand Down

0 comments on commit e73c231

Please sign in to comment.