Skip to content

Commit

Permalink
Not necessary to build a new grid.
Browse files Browse the repository at this point in the history
  • Loading branch information
nichannah committed Jun 22, 2015
1 parent 6b117eb commit 734d9f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/framework/MOM_diag_mediator.F90
Original file line number Diff line number Diff line change
Expand Up @@ -731,11 +731,11 @@ subroutine remap_column_to_z(regrid_cs, remap_cs, nz_src, nz_dest, h, depth, &

! Calculate thicknesses for new Z* using nominal thicknesses from
! h_remap, current bathymetry and total thickness.
call buildGridZstarColumn(regrid_cs, nz_dest, depth, sum(h(:)), zi_tmp)
!call buildGridZstarColumn(regrid_cs, nz_dest, depth, sum(h(:)), zi_tmp)
! Calculate how much thicknesses change between source and dest grids, do
! remapping
zi_tmp = -zi_tmp
h_dest(:) = zi_tmp(2:) - zi_tmp(:size(zi_tmp)-1)
! zi_tmp = -zi_tmp
h_dest(:) = zi_remap(2:) - zi_remap(:size(zi_remap)-1)
call dzFromH1H2(nz_src, h(:), nz_dest, h_dest, dz)
call remapping_core(remap_cs, nz_src, h(:), field(:), nz_dest, dz, &
remapped_field(:))
Expand Down

0 comments on commit 734d9f1

Please sign in to comment.