@@ -65,22 +65,6 @@ module MOM_oda_incupd
6565type, public :: oda_incupd_CS ; private
6666 integer :: nz ! < The total number of layers.
6767 integer :: nz_data ! < The total number of arbritary layers (used by older code).
68- integer :: isc ! < The starting i-index of the computational domain at h.
69- integer :: iec ! < The ending i-index of the computational domain at h.
70- integer :: jsc ! < The starting j-index of the computational domain at h.
71- integer :: jec ! < The ending j-index of the computational domain at h.
72- integer :: IscB ! < The starting I-index of the computational domain at u/v.
73- integer :: IecB ! < The ending I-index of the computational domain at u/v.
74- integer :: JscB ! < The starting J-index of the computational domain at u/v.
75- integer :: JecB ! < The ending J-index of the computational domain at h.
76- integer :: isd ! < The starting i-index of the data domain at h.
77- integer :: ied ! < The ending i-index of the data domain at h.
78- integer :: jsd ! < The starting j-index of the data domain at h.
79- integer :: jed ! < The ending j-index of the data domain at h.
80- integer :: IsdB ! < The starting I-index of the data domain at u/v.
81- integer :: IedB ! < The ending I-index of the data domain at u/v.
82- integer :: JsdB ! < The starting J-index of the data domain at u/v.
83- integer :: JedB ! < The ending J-index of the data domain at h.
8468 integer :: fldno = 0 ! < The number of fields which have already been
8569 ! ! registered by calls to set_up_oda_incupd_field
8670
@@ -224,9 +208,6 @@ subroutine initialize_oda_incupd( G, GV, US, param_file, CS, data_h,nz_data, res
224208 default= .true. )
225209
226210 CS% nz = GV% ke
227- CS% isc = G% isc ; CS% iec = G% iec ; CS% jsc = G% jsc ; CS% jec = G% jec
228- CS% isd = G% isd ; CS% ied = G% ied ; CS% jsd = G% jsd ; CS% jed = G% jed
229- CS% isdB = G% isdB ; CS% iedB = G% iedB; CS% jsdB = G% jsdB ; CS% jedB = G% jedB
230211
231212 ! increments on horizontal grid
232213 if (.not. CS% incupdDataOngrid) call MOM_error(FATAL,' initialize_oda_incupd: ' // &
@@ -421,6 +402,8 @@ subroutine calc_oda_increments(h, tv, u, v, G, GV, US, CS)
421402
422403 do k= 1 ,nz_data
423404 sum_h2 = sum_h2+ h_obs(i,j,k)
405+ enddo
406+ do k= 1 ,nz_data
424407 tmp_h(k)= (sum_h1/ sum_h2)* h_obs(i,j,k)
425408 enddo
426409 ! get temperature
@@ -450,7 +433,7 @@ subroutine calc_oda_increments(h, tv, u, v, G, GV, US, CS)
450433 enddo
451434 endif
452435 enddo ; enddo
453-
436+
454437 ! remap u to h_obs to get increment
455438 if (CS% uv_inc) then
456439 call pass_var(h, G% Domain)
0 commit comments