Skip to content

Commit

Permalink
Don't build diagnostic Z remapping grids if grid definition param not
Browse files Browse the repository at this point in the history
provided. #62
  • Loading branch information
nichannah committed Jul 28, 2015
1 parent 604681e commit d0e99df
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/framework/MOM_diag_mediator.F90
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,13 @@ subroutine diag_update_target_grids(diag_cs)
nz_src = size(diag_cs%h, 3)
G => diag_cs%G

! The interface positions for z remapping were not provided, so don't do
! anything. If z remapping of diagnostics is requested then an error will
! be triggered on post(). See param DIAG_REMAP_Z_GRID_DEF
if (.not. allocated(diag_cs%zi_remap)) then
return
endif

if (.not. diag_cs%remapping_initialized) then
call assert(allocated(diag_cs%zi_remap), &
'update_diag_target_grids: Remapping axis not initialized')
Expand Down

0 comments on commit d0e99df

Please sign in to comment.