Skip to content

Commit

Permalink
Removed unused variables from horizontal_regridding
Browse files Browse the repository at this point in the history
- To be sure model vertical dimension wasn't being used I've
  removed unused references to G%ke.
  • Loading branch information
adcroft committed Mar 4, 2018
1 parent d7173f0 commit 96137d0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/framework/MOM_horizontal_regridding.F90
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,14 @@ subroutine fill_miss_2d(aout,good,fill,prev,G,smooth,num_pass,relc,crit,keep_bug
real, parameter :: relc_default = 0.25, crit_default = 1.e-3

integer :: npass
integer :: is, ie, js, je, nz
integer :: is, ie, js, je
real :: relax_coeff, acrit, ares
logical :: debug_it

debug_it=.false.
if (PRESENT(debug)) debug_it=debug

is = G%isc ; ie = G%iec ; js = G%jsc ; je = G%jec ; nz = G%ke
is = G%isc ; ie = G%iec ; js = G%jsc ; je = G%jec

npass = num_pass_default
if (PRESENT(num_pass)) npass = num_pass
Expand Down Expand Up @@ -298,7 +298,6 @@ subroutine horiz_interp_and_extrap_tracer_record(filename, varnam, conversion,
integer :: isc,iec,jsc,jec ! global compute domain indices
integer :: isg, ieg, jsg, jeg ! global extent
integer :: isd, ied, jsd, jed ! data domain indices
integer :: ni, nj, nz ! global grid size
integer :: id_clock_read
character(len=12) :: dim_name(4)
logical :: debug=.false.
Expand All @@ -309,7 +308,7 @@ subroutine horiz_interp_and_extrap_tracer_record(filename, varnam, conversion,
real, dimension(SZI_(G),SZJ_(G)) :: good2,fill2
real, dimension(SZI_(G),SZJ_(G)) :: nlevs

is = G%isc ; ie = G%iec ; js = G%jsc ; je = G%jec ; nz = G%ke
is = G%isc ; ie = G%iec ; js = G%jsc ; je = G%jec
isd = G%isd ; ied = G%ied ; jsd = G%jsd ; jed = G%jed
isg = G%isg ; ieg = G%ieg ; jsg = G%jsg ; jeg = G%jeg

Expand Down Expand Up @@ -616,7 +615,6 @@ subroutine horiz_interp_and_extrap_tracer_fms_id(fms_id, Time, conversion, G, t
integer :: isc,iec,jsc,jec ! global compute domain indices
integer :: isg, ieg, jsg, jeg ! global extent
integer :: isd, ied, jsd, jed ! data domain indices
integer :: ni, nj, nz ! global grid size
integer :: id_clock_read
integer, dimension(4) :: fld_sz
character(len=12) :: dim_name(4)
Expand All @@ -628,7 +626,7 @@ subroutine horiz_interp_and_extrap_tracer_fms_id(fms_id, Time, conversion, G, t
real, dimension(SZI_(G),SZJ_(G)) :: good2,fill2
real, dimension(SZI_(G),SZJ_(G)) :: nlevs

is = G%isc ; ie = G%iec ; js = G%jsc ; je = G%jec ; nz = G%ke
is = G%isc ; ie = G%iec ; js = G%jsc ; je = G%jec
isd = G%isd ; ied = G%ied ; jsd = G%jsd ; jed = G%jed
isg = G%isg ; ieg = G%ieg ; jsg = G%jsg ; jeg = G%jeg

Expand Down

0 comments on commit 96137d0

Please sign in to comment.