Skip to content

Commit

Permalink
Fix non-initialized mixing ratio in p/z-lev interp (#2104)
Browse files Browse the repository at this point in the history
TYPE: bug fix

KEYWORDS: mixing ratio, interpolation, pressure level, height level, missing value

SOURCE: Jesus Fernandez, Andrés Simón-Moral and Josipa Milovac (Instituto de Física de Cantabria, CSIC-Universidad de Cantabria, Spain)

DESCRIPTION OF CHANGES:
Problem: The mixing ratio field is not being initialized in the interpolation routine. This leads to no missing values below ground and values from previous time steps filling these areas.

Solution:
The mixing ratio has been initialized to missing values, as for the rest of variables.

LIST OF MODIFIED FILES:
```
M       phys/module_diag_pld.F
M       phys/module_diag_zld.F
```

TESTS CONDUCTED: 
The Jenkins tests are all passing.

RELEASE NOTE: Fix non-initialized 3D moisture field in pressure- and height-level diagnostic interpolation.
  • Loading branch information
jesusff authored Sep 18, 2024
1 parent 297b434 commit 1d86bcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions phys/module_diag_pld.F
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ SUBROUTINE pld ( u,v,w,t,qv,zp,zb,pp,pb,p,pw, &
ght_pl(i,kp,j) = missing
s_pl (i,kp,j) = missing
td_pl (i,kp,j) = missing
q_pl (i,kp,j) = missing
END DO
END DO
END DO
Expand Down
1 change: 1 addition & 0 deletions phys/module_diag_zld.F
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ SUBROUTINE zld ( u,v,w,t,qv,zp,zb,pp,pb,p,pw, &
ght_zl(i,kz,j) = missing
s_zl (i,kz,j) = missing
td_zl (i,kz,j) = missing
q_zl (i,kz,j) = missing
p_zl (i,kz,j) = missing
END DO
END DO
Expand Down

0 comments on commit 1d86bcb

Please sign in to comment.