Skip to content

Commit

Permalink
physics/sfcsub.F: workaround for gfortran 8.1, crashes when declarati…
Browse files Browse the repository at this point in the history
…on 'logical*1 lbms(mdata)' is used
  • Loading branch information
climbfuji committed Sep 4, 2018
1 parent 3fe977a commit 399294a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions physics/sfcsub.F
Original file line number Diff line number Diff line change
Expand Up @@ -2681,12 +2681,13 @@ subroutine fixrdg(lugb,idim,jdim,fngrib,
real (kind=kind_io8), allocatable :: data8(:)
real (kind=kind_io4), allocatable :: data4(:)
!
logical*1 lbms(mdata)
logical, allocatable :: lbms(:)
!
integer kpds(200),kgds(200)
integer jpds(200),jgds(200), kpds0(200)
!
allocate(data8(1:idim*jdim))
allocate(lbms(1:mdata))
kpds = 0
kgds = 0
jpds = 0
Expand Down Expand Up @@ -2776,6 +2777,7 @@ subroutine fixrdg(lugb,idim,jdim,fngrib,
endif
!
deallocate(data8)
deallocate(lbms)
return
end
subroutine getarea(kgds,dlat,dlon,rslat,rnlat,wlon,elon,ijordr
Expand Down Expand Up @@ -7914,14 +7916,15 @@ subroutine fixrdc(lugb,fngrib,kpds5,kpds7,mon,slmask,
real (kind=kind_io8), allocatable :: rlngrb(:), rltgrb(:)
!
logical lmask, yr2kc, gaus, ijordr
logical*1 lbms(mdata)
logical, allocatable :: lbms(:)
!
integer, intent(in) :: kpds7
integer kpds(1000),kgds(1000)
integer jpds(1000),jgds(1000), kpds0(1000)
real (kind=kind_io8) outlat(len), outlon(len)
!
allocate(data8(1:mdata))
allocate(lbms(mdata))
!
! integer imax_sv, jmax_sv, wlon_sv, rnlat_sv, kpds1_sv
! date imax_sv/0/, jmax_sv/0/, wlon_sv/999.0/, rnlat_sv/999.0/
Expand Down Expand Up @@ -8057,6 +8060,7 @@ subroutine fixrdc(lugb,fngrib,kpds5,kpds7,mon,slmask,
call baclose(lugb,iret)
!
deallocate(data8)
deallocate(lbms)
return
end subroutine fixrdc
subroutine fixrda(lugb,fngrib,kpds5,slmask,
Expand Down

0 comments on commit 399294a

Please sign in to comment.