Skip to content

Commit cf46bc9

Browse files
authored
Update MOM_oda_incupd.F90
remove unused index bounds, and fix sum_h2 loop.
1 parent a4ca307 commit cf46bc9

1 file changed

Lines changed: 2 additions & 19 deletions

File tree

src/ocean_data_assim/MOM_oda_incupd.F90

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -65,22 +65,6 @@ module MOM_oda_incupd
6565
type, 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

0 commit comments

Comments
 (0)