Skip to content

Commit f7aea58

Browse files
committed
deallocate local variables in satmedmfvdifq at end of run phase
1 parent 66814cb commit f7aea58

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

physics/PBL/SATMEDMF/satmedmfvdifq.F

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3098,6 +3098,11 @@ subroutine satmedmfvdifq_run(im,km,ntrac,ntcw,ntrw, &
30983098
endif !sa3dtke
30993099
!
31003100
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
3101+
if (do_canopy) then
3102+
if(allocated(EDDYVESTX)) deallocate(EDDYVESTX)
3103+
if(allocated(ZCANX)) deallocate(ZCANX)
3104+
endif
3105+
31013106
return
31023107
end subroutine satmedmfvdifq_run
31033108
!> @}

0 commit comments

Comments
 (0)