Skip to content

Commit a8577df

Browse files
authored
Merge branch 'NOAA-EMC:dev/emc' into ocn_stoch_july2021
2 parents 16e6af0 + f8a8e4c commit a8577df

2 files changed

Lines changed: 4 additions & 21 deletions

File tree

src/ocean_data_assim/MOM_oda_incupd.F90

Lines changed: 3 additions & 20 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
@@ -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)

src/parameterizations/vertical/MOM_diabatic_driver.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ module MOM_diabatic_driver
112112
!! domain. The exact location and properties of
113113
!! those sponges are set by calls to
114114
!! initialize_sponge and set_up_sponge_field.
115-
logical :: use_oda_incupd !!< If True, DA incremental update is
115+
logical :: use_oda_incupd !< If True, DA incremental update is
116116
!! applied everywhere
117117
logical :: use_geothermal !< If true, apply geothermal heating.
118118
logical :: use_int_tides !< If true, use the code that advances a separate set

0 commit comments

Comments
 (0)