Skip to content

Commit

Permalink
Reset State_Met PBL vars after computing budget diags, not before
Browse files Browse the repository at this point in the history
Signed-off-by: Lizzie Lundgren <elundgren@seas.harvard.edu>
  • Loading branch information
lizziel committed Oct 17, 2024
1 parent 78a8d3f commit 1faf61d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions GeosCore/pbl_mix_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -341,15 +341,9 @@ SUBROUTINE Compute_Pbl_Height( Input_Opt, State_Grid, State_Chm, &
! COMPUTE_PBL_HEIGHT begins here!
!=================================================================

! Initialize
RC = GC_SUCCESS
ErrMsg = ''
ThisLoc = ' -> at Compute_PBL_Height (in module GeosCore/pbl_mix_mod.F90)'

Bad_Sum = .FALSE.
State_Met%InPbl = .FALSE.
State_Met%F_of_PBL = 0.0_fp
State_Met%F_Under_PBLTop = 0.0_fp

!------------------------------------------------------------------------
! Change in PBL mass for use with budget mixing PBL diagnostic - 1 of 2
Expand Down Expand Up @@ -388,6 +382,12 @@ SUBROUTINE Compute_Pbl_Height( Input_Opt, State_Grid, State_Chm, &
ENDIF
ENDIF

! Initialize
State_Met%InPbl = .FALSE.
State_Met%F_of_PBL = 0.0_fp
State_Met%F_Under_PBLTop = 0.0_fp
Bad_Sum = .FALSE.

!$OMP PARALLEL DO &
!$OMP DEFAULT( SHARED )&
!$OMP PRIVATE( I, J, L, LTOP, Lower_Edge_Height )&
Expand Down

0 comments on commit 1faf61d

Please # to comment.