Skip to content

Commit

Permalink
Remove some warnings from input_data.F90.
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeGayno-NOAA committed Dec 16, 2022
1 parent c732f67 commit 2f81bc9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sorc/chgres_cube.fd/input_data.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2994,7 +2994,7 @@ subroutine read_input_atm_grib2_file(localpet)
unpack, k, gfld, iret)

if (iret == 0) then ! found data
dummy2d = reshape(gfld%fld, (/i_input,j_input/) )
dummy2d = real((reshape(gfld%fld, (/i_input,j_input/) )), kind=esmf_kind_r4)
else ! did not find data.
if (trim(method) .eq. 'intrp' .and. .not.all_empty) then
dummy2d = intrp_missing
Expand Down Expand Up @@ -3054,7 +3054,7 @@ subroutine read_input_atm_grib2_file(localpet)
enddo
enddo
do vlev=1,lev_input
dummy2d = dummy3d(:,:,n)
dummy2d = real(dummy3d(:,:,n) , kind=esmf_kind_r4)
if (any(dummy2d .eq. intrp_missing)) then
! If we're outside the appropriate region, don't fill but error instead
if (n == o3n .and. rlevs(vlev) .lt. lev_no_o3_fill) then
Expand Down Expand Up @@ -5529,7 +5529,7 @@ subroutine read_input_sfc_grib2_file(localpet)

if (rc == 0 ) then
! print*,'soil type ', maxval(gfld%fld),minval(gfld%fld)
dummy2d = reshape(gfld%fld , (/i_input,j_input/))
dummy2d = reshape(real(gfld%fld,kind=esmf_kind_r4) , (/i_input,j_input/))

endif

Expand Down Expand Up @@ -5576,7 +5576,7 @@ subroutine read_input_sfc_grib2_file(localpet)
do j = 1, j_input
do i = 1, i_input
if(dummy2d(i,j) == 14.0_esmf_kind_r4 .and. slmsk_save(i,j) == 1) then
dummy1d(:) = dummy3d_stype(i,j,:)
dummy1d(:) = real(dummy3d_stype(i,j,:),kind=esmf_kind_r4)
dummy1d(14) = 0.0_esmf_kind_r4
dummy2d(i,j) = real(MAXLOC(dummy1d, 1),esmf_kind_r4)
endif
Expand Down Expand Up @@ -7293,7 +7293,7 @@ subroutine read_grib_soil(vname, vname_file, lugb, pdt_num, dummy3d)
iscale2 = 10 ** gfld%ipdtmpl(14)
! print*,'getgb2 top of soil layer in m ', float(gfld%ipdtmpl(12))/float(iscale1)
! print*,'getgb2 bot of soil layer in m ', float(gfld%ipdtmpl(15))/float(iscale2)
dummy2d = reshape(gfld%fld, (/i_input,j_input/) )
dummy2d = reshape(real(gfld%fld,kind=esmf_kind_r4), (/i_input,j_input/) )
endif

j = k
Expand Down

0 comments on commit 2f81bc9

Please sign in to comment.