Skip to content

Commit

Permalink
Fix error in diagnostic axis registration for grid space axes
Browse files Browse the repository at this point in the history
 - For runs using grid space diagnostic axes, the registration
   of the cell centered axes fails with symmetric memory with
   a runtime error when posting diagnostics. This patch fixes
   this error.
  • Loading branch information
MJHarrison-GFDL committed May 6, 2024
1 parent 46fd6e6 commit 9f71c37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/framework/MOM_diag_mediator.F90
Original file line number Diff line number Diff line change
Expand Up @@ -419,9 +419,9 @@ subroutine set_axes_info(G, GV, US, param_file, diag_cs, set_vertical)

if (diag_cs%grid_space_axes) then
id_xh = diag_axis_init('ih', iax(G%isg:G%ieg), 'none', 'x', &
'h point grid-space longitude', G%Domain, position=EAST)
'h point grid-space longitude', G%Domain)
id_yh = diag_axis_init('jh', jax(G%jsg:G%jeg), 'none', 'y', &
'h point grid space latitude', G%Domain, position=NORTH)
'h point grid space latitude', G%Domain)
else
id_xh = diag_axis_init('xh', G%gridLonT(G%isg:G%ieg), G%x_axis_units, 'x', &
'h point nominal longitude', G%Domain)
Expand Down

0 comments on commit 9f71c37

Please sign in to comment.