Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/NOAA-EMC/fv3atm into upd…
Browse files Browse the repository at this point in the history
…ate_gsl_develop_from_develop_20210531
  • Loading branch information
climbfuji committed Jun 2, 2021
2 parents 7c257a0 + 116d701 commit 30f3b80
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 16 deletions.
22 changes: 13 additions & 9 deletions io/post_gfs.F90
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,19 @@ subroutine post_run_gfs(wrt_int_state,mypei,mpicomp,lead_write, &
if(mype==0) print *,'af read_xml at fh00,name=',trim(filenameflat)
else if(ifhr > 0) then
filenameflat = 'postxconfig-NT.txt'
if(size(paramset)>0) then
do i=1,size(paramset)
if (size(paramset(i)%param)>0) then
deallocate(paramset(i)%param)
nullify(paramset(i)%param)
endif
enddo
deallocate(paramset)
nullify(paramset)
if(associated(paramset)) then
if( size(paramset)>0) then
do i=1,size(paramset)
if (associated(paramset(i)%param)) then
if (size(paramset(i)%param)>0) then
deallocate(paramset(i)%param)
nullify(paramset(i)%param)
endif
endif
enddo
deallocate(paramset)
nullify(paramset)
endif
endif
num_pset = 0
call read_xml()
Expand Down
18 changes: 11 additions & 7 deletions io/post_regional.F90
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,17 @@ subroutine post_run_regional(wrt_int_state,mypei,mpicomp,lead_write, &
if(mype==0) print *,'af read_xml at fh00,name=',trim(filenameflat)
else if(ifhr > 0) then
filenameflat = 'postxconfig-NT.txt'
if(size(paramset)>0) then
do i=1,size(paramset)
if (size(paramset(i)%param)>0) then
deallocate(paramset(i)%param)
nullify(paramset(i)%param)
endif
enddo
if(associated(paramset)) then
if(size(paramset)>0) then
do i=1,size(paramset)
if (associated(paramset(i)%param)) then
if (size(paramset(i)%param)>0) then
deallocate(paramset(i)%param)
nullify(paramset(i)%param)
endif
endif
enddo
endif
deallocate(paramset)
nullify(paramset)
endif
Expand Down

0 comments on commit 30f3b80

Please sign in to comment.