Skip to content

Commit

Permalink
allocate vars
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed Sep 20, 2023
1 parent f3db775 commit ac39a23
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mediator/med_enthalpy_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ subroutine med_compute_enthalpy(is_local, rc)
enddo
endif


allocate(hrofl_a(nmax))
allocate(hrofi_a(nmax))
do n=1,nmax
! for F cases (docn) tocn is non-zero over land and so ofrac must be included
! so that only ocean points are included in calculation
Expand Down Expand Up @@ -242,7 +243,8 @@ subroutine med_compute_enthalpy(is_local, rc)
if(.not. FB_fldchk(is_local%wrap%FBExp(compocn), 'Foxx_hrain', rc)) deallocate(hrain)
if(.not. FB_fldchk(is_local%wrap%FBExp(compocn), 'Foxx_hevap', rc)) deallocate(hevap)
if(.not. FB_fldchk(is_local%wrap%FBExp(compocn), 'Foxx_hcond', rc)) deallocate(hcond)

deallocate(hrofl_a)
deallocate(hrofi_a)
call t_stopf(subname)

end subroutine med_compute_enthalpy
Expand Down

0 comments on commit ac39a23

Please sign in to comment.