Skip to content

Commit 684f583

Browse files
authored
Bugfix for duplicated allocation and file closing for radar_rhv_opt = 2 (#2078)
TYPE: bug fix KEYWORDS: radar DA DESCRIPTION OF CHANGES: Problem: Duplicated allocation of avg_qws when choosing radar_rhv_opt = 2. da_free_unit instead of da_get_unit for closing a file when radar_rhv_opt is equal to 2. ISSUE: #2077 LIST OF MODIFIED FILES: var/da/da_radar/da_get_innov_vector_radar.inc
1 parent 0a11865 commit 684f583

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

var/da/da_radar/da_get_innov_vector_radar.inc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,6 @@ END IF
275275
allocate (avg_qrn(tot_h_index,tot_z_index))
276276
allocate (avg_qds(tot_h_index,tot_z_index))
277277
allocate (avg_qws(tot_h_index,tot_z_index))
278-
allocate (avg_qws(tot_h_index,tot_z_index))
279278
allocate (avg_qgr(tot_h_index,tot_z_index))
280279
allocate (ave_rho(tot_h_index,tot_z_index))
281280
@@ -379,7 +378,7 @@ END IF
379378
end do
380379
end do !bottom-top
381380
if (rootproc) close(hydro_weight_unit)
382-
if (rootproc) call da_get_unit(hydro_weight_unit)
381+
if (rootproc) call da_free_unit(hydro_weight_unit)
383382
end if !! use_radar_rhv .and. radar_rhv_opt == 2
384383
385384
do n=iv%info(radar)%n1,iv%info(radar)%n2

0 commit comments

Comments
 (0)