Skip to content

Commit 42bec45

Browse files
committed
Removing rectangular_quadtrature and gaussian_likelihood_tails from the QCF table and obs_inc_info
1 parent 46dbd96 commit 42bec45

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

assimilation_code/modules/assimilation/algorithm_info_mod.f90

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ module algorithm_info_mod
6767

6868
type obs_inc_info_type
6969
integer :: filter_kind
70-
logical :: rectangular_quadrature, gaussian_likelihood_tails
7170
logical :: sort_obs_inc, spread_restoration
7271
logical :: bounded_below, bounded_above
7372
real(r8) :: lower_bound, upper_bound
@@ -83,7 +82,7 @@ module algorithm_info_mod
8382

8483
integer, parameter :: HEADER_LINES = 2
8584
character(len=129), dimension(4) :: header1
86-
character(len=129), dimension(29) :: header2
85+
character(len=129), dimension(27) :: header2
8786

8887
character(len=129), allocatable :: specified_qtys(:)
8988
type(algorithm_info_type), allocatable :: qcf_table_data(:)
@@ -178,9 +177,8 @@ subroutine read_qcf_table(qcf_table_filename)
178177
qcf_table_data(row)%probit_state%lower_bound, qcf_table_data(row)%probit_state%upper_bound, dist_type_string_probit_extended_state, &
179178
qcf_table_data(row)%probit_extended_state%bounded_below, qcf_table_data(row)%probit_extended_state%bounded_above, &
180179
qcf_table_data(row)%probit_extended_state%lower_bound, qcf_table_data(row)%probit_extended_state%upper_bound, &
181-
filter_kind_string, qcf_table_data(row)%obs_inc_info%rectangular_quadrature, &
182-
qcf_table_data(row)%obs_inc_info%gaussian_likelihood_tails, qcf_table_data(row)%obs_inc_info%sort_obs_inc, &
183-
qcf_table_data(row)%obs_inc_info%spread_restoration, qcf_table_data(row)%obs_inc_info%bounded_below, qcf_table_data(row)%obs_inc_info%bounded_above, &
180+
filter_kind_string, qcf_table_data(row)%obs_inc_info%sort_obs_inc, qcf_table_data(row)%obs_inc_info%spread_restoration, &
181+
qcf_table_data(row)%obs_inc_info%bounded_below, qcf_table_data(row)%obs_inc_info%bounded_above, &
184182
qcf_table_data(row)%obs_inc_info%lower_bound, qcf_table_data(row)%obs_inc_info%upper_bound
185183

186184
! Converting the distribution types (read in from table as a string) to its corresponding int value
@@ -417,12 +415,11 @@ end subroutine probit_dist_info
417415
!------------------------------------------------------------------------
418416

419417

420-
subroutine obs_inc_info(obs_qty, filter_kind, rectangular_quadrature, gaussian_likelihood_tails, &
421-
sort_obs_inc, spread_restoration, bounded_below, bounded_above, lower_bound, upper_bound)
418+
subroutine obs_inc_info(obs_qty, filter_kind, sort_obs_inc, spread_restoration, &
419+
bounded_below, bounded_above, lower_bound, upper_bound)
422420

423421
integer, intent(in) :: obs_qty
424422
integer, intent(inout) :: filter_kind
425-
logical, intent(inout) :: rectangular_quadrature, gaussian_likelihood_tails
426423
logical, intent(inout) :: sort_obs_inc
427424
logical, intent(inout) :: spread_restoration
428425
logical, intent(inout) :: bounded_below, bounded_above
@@ -473,10 +470,6 @@ subroutine obs_inc_info(obs_qty, filter_kind, rectangular_quadrature, gaussian_l
473470

474471
endif
475472

476-
! Only need to set these two for options the original RHF implementation
477-
!!!rectangular_quadrature = .true.
478-
!!!gaussian_likelihood_tails = .false.
479-
480473
end subroutine obs_inc_info
481474

482475
!------------------------------------------------------------------------
@@ -591,8 +584,7 @@ subroutine log_qcf_table_data()
591584
qcf_table_data(row)%probit_state%lower_bound, qcf_table_data(row)%probit_state%upper_bound, qcf_table_data(row)%probit_extended_state%dist_type, &
592585
qcf_table_data(row)%probit_extended_state%bounded_below, qcf_table_data(row)%probit_extended_state%bounded_above, &
593586
qcf_table_data(row)%probit_extended_state%lower_bound, qcf_table_data(row)%probit_extended_state%upper_bound, &
594-
qcf_table_data(row)%obs_inc_info%filter_kind, qcf_table_data(row)%obs_inc_info%rectangular_quadrature, &
595-
qcf_table_data(row)%obs_inc_info%gaussian_likelihood_tails, qcf_table_data(row)%obs_inc_info%sort_obs_inc, &
587+
qcf_table_data(row)%obs_inc_info%filter_kind, qcf_table_data(row)%obs_inc_info%sort_obs_inc, &
596588
qcf_table_data(row)%obs_inc_info%spread_restoration, qcf_table_data(row)%obs_inc_info%bounded_below, qcf_table_data(row)%obs_inc_info%bounded_above, &
597589
qcf_table_data(row)%obs_inc_info%lower_bound, qcf_table_data(row)%obs_inc_info%upper_bound
598590
call error_handler(E_MSG, 'log_qcf_table_data:', trim(log_msg), source)

assimilation_code/modules/assimilation/assim_tools_mod.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -987,8 +987,8 @@ subroutine obs_increment(ens_in, ens_size, obs, obs_var, obs_kind, obs_inc, &
987987
bounded_below = .false.; lower_bound = 0.0_r8
988988
bounded_above = .false.; upper_bound = 0.0_r8
989989

990-
call obs_inc_info(obs_kind, filter_kind, rectangular_quadrature, gaussian_likelihood_tails, &
991-
sort_obs_inc, spread_restoration, bounded_below, bounded_above, lower_bound, upper_bound)
990+
call obs_inc_info(obs_kind, filter_kind, sort_obs_inc, spread_restoration, &
991+
bounded_below, bounded_above, lower_bound, upper_bound)
992992

993993
! Could add logic to check on sort being true when not needed.
994994
! Could also add logic to limit the use of spread_restoration to EAKF. It will fail

0 commit comments

Comments
 (0)