Skip to content

Commit

Permalink
Bugfix for duplicated allocation and file closing for radar_rhv_opt =…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
mos3r3n authored Aug 1, 2024
1 parent 0a11865 commit 684f583
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions var/da/da_radar/da_get_innov_vector_radar.inc
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ END IF
allocate (avg_qrn(tot_h_index,tot_z_index))
allocate (avg_qds(tot_h_index,tot_z_index))
allocate (avg_qws(tot_h_index,tot_z_index))
allocate (avg_qws(tot_h_index,tot_z_index))
allocate (avg_qgr(tot_h_index,tot_z_index))
allocate (ave_rho(tot_h_index,tot_z_index))
Expand Down Expand Up @@ -379,7 +378,7 @@ END IF
end do
end do !bottom-top
if (rootproc) close(hydro_weight_unit)
if (rootproc) call da_get_unit(hydro_weight_unit)
if (rootproc) call da_free_unit(hydro_weight_unit)
end if !! use_radar_rhv .and. radar_rhv_opt == 2
do n=iv%info(radar)%n1,iv%info(radar)%n2
Expand Down

0 comments on commit 684f583

Please sign in to comment.