Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inline post restart issue with gnu compiler #321

Merged
merged 4 commits into from
Jun 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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