@@ -56,13 +56,10 @@ SUBROUTINE obs_op_f_pdaf(step, dim_p, dim_obs_f, state_p, m_state_f)
5656 ! Later revisions - see svn log
5757 !
5858 ! !USES:
59- USE mpi, ONLY: MPI_DOUBLE
6059 USE mpi, ONLY: MPI_DOUBLE_PRECISION
61- USE mpi, ONLY: MPI_INT
62- USE mpi, ONLY: MPI_SUM
6360 USE mpi, ONLY: MPI_ALLGATHERV
6461 USE mod_assimilation, &
65- ONLY: obs_index_p, local_dims_obs, local_disp_obs, obs_id_p, obs_nc2pdaf_deprecated, &
62+ ONLY: obs_index_p, local_dims_obs, local_disp_obs, &
6663 var_id_obs, dim_obs_p
6764 USE mod_assimilation, ONLY: obs_pdaf2nc
6865 USE mod_assimilation, ONLY: obs_nc2pdaf
@@ -91,8 +88,6 @@ SUBROUTINE obs_op_f_pdaf(step, dim_p, dim_obs_f, state_p, m_state_f)
9188 INTEGER :: ierror, max_var_id
9289 INTEGER :: i ! Counter
9390 REAL , ALLOCATABLE :: m_state_tmp(:) ! Temporary process-local state vector
94- INTEGER , ALLOCATABLE :: obs_nc2pdaf_deprecated_p_tmp(:)
95- INTEGER , ALLOCATABLE :: obs_nc2pdaf_deprecated_tmp(:)
9691
9792 ! *********************************************
9893 ! *** Perform application of measurement ***
@@ -110,16 +105,9 @@ SUBROUTINE obs_op_f_pdaf(step, dim_p, dim_obs_f, state_p, m_state_f)
110105
111106 ! Initialize process-local observed state
112107 ALLOCATE (m_state_tmp(dim_obs_p))
113- allocate (obs_nc2pdaf_deprecated_p_tmp (dim_obs_p))
114-
115- if (allocated (obs_nc2pdaf_deprecated)) deallocate (obs_nc2pdaf_deprecated)
116- allocate (obs_nc2pdaf_deprecated(dim_obs_f))
117- if (allocated (obs_nc2pdaf_deprecated_tmp)) deallocate (obs_nc2pdaf_deprecated_tmp)
118- allocate (obs_nc2pdaf_deprecated_tmp(dim_obs_f))
119108
120109 DO i = 1 , dim_obs_p
121110 m_state_tmp(i) = state_p(obs_index_p(i))
122- obs_nc2pdaf_deprecated_p_tmp(i) = obs_id_p(obs_index_p(i))
123111 END DO
124112
125113 ! print *,'local_dims_obs(mype_filter+1) ', local_dims_obs(mype_filter+1)
@@ -132,47 +120,4 @@ SUBROUTINE obs_op_f_pdaf(step, dim_p, dim_obs_f, state_p, m_state_f)
132120 MPI_DOUBLE_PRECISION, m_state_f, local_dims_obs, local_disp_obs, &
133121 MPI_DOUBLE_PRECISION, comm_filter, ierror)
134122
135- ! gather obs_nc2pdaf_deprecated_p
136- CALL mpi_allgatherv(obs_nc2pdaf_deprecated_p_tmp, dim_obs_p, &
137- MPI_INT, obs_nc2pdaf_deprecated, local_dims_obs, local_disp_obs, &
138- MPI_INT, comm_filter, ierror)
139-
140- ! At this point OBS_NC2PDAF_DEPRECATED should be the same as OBS_PDAF2NC from
141- ! INIT_DIM_OBS_PDAF / INIT_DIM_OBS_F_PDAF
142- do i = 1 , dim_obs_f
143- if (.not. obs_nc2pdaf_deprecated(i) == obs_pdaf2nc(i)) then
144- print * , " TSMP-PDAF mype(w)=" , mype_world, " : ERROR in observation index arrays"
145- print * , " i=" , i
146- print * , " obs_nc2pdaf_deprecated(i)=" , obs_nc2pdaf_deprecated(i)
147- print * , " obs_pdaf2nc(i)=" , obs_pdaf2nc(i)
148- call abort_parallel()
149- end if
150- end do
151-
152- ! Then OBS_NC2PDAF_DEPRECATED is inverted in the following lines
153-
154- ! resort obs_nc2pdaf_deprecated_p
155- do i= 1 ,dim_obs_f
156- obs_nc2pdaf_deprecated_tmp(i) = obs_nc2pdaf_deprecated(i)
157- enddo
158- do i= 1 ,dim_obs_f
159- ! print *,'obs_nc2pdaf_deprecated_tmp(i) ', obs_nc2pdaf_deprecated_tmp(i)
160- obs_nc2pdaf_deprecated(obs_nc2pdaf_deprecated_tmp(i)) = i
161- enddo
162-
163- ! At this point OBS_NC2PDAF_DEPRECATED should be the same as OBS_NC2PDAF from
164- ! INIT_DIM_OBS_PDAF / INIT_DIM_OBS_F_PDAF
165- do i = 1 , dim_obs_f
166- if (.not. obs_nc2pdaf_deprecated(i) == obs_nc2pdaf(i)) then
167- print * , " TSMP-PDAF mype(w)=" , mype_world, " : ERROR in observation index arrays"
168- print * , " i=" , i
169- print * , " obs_nc2pdaf_deprecated(i)=" , obs_nc2pdaf_deprecated(i)
170- print * , " obs_nc2pdaf(i)=" , obs_nc2pdaf(i)
171- call abort_parallel()
172- end if
173- end do
174-
175- ! Clean up
176- DEALLOCATE (m_state_tmp,obs_nc2pdaf_deprecated_p_tmp,obs_nc2pdaf_deprecated_tmp)
177-
178123END SUBROUTINE obs_op_f_pdaf
0 commit comments