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

fixed warnings in test_index_gdas.F90 and other test code #585

Merged
merged 2 commits into from
Nov 21, 2023
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
8 changes: 4 additions & 4 deletions tests/test_gf_unpack2.F90
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ program test_gf_unpack2
implicit none

character, dimension(269) :: fgrib
integer :: n1, n2, n3, nan, fgrib_len
integer :: n1, n2, n3, fgrib_len
integer :: iofst, lencsec2, ierr
integer :: numlocal, numfields
integer :: listsec0(3), listsec1(13), maxvals(7)
Expand Down Expand Up @@ -76,8 +76,8 @@ end subroutine gf_unpack2
& char(0), char(0), char(0), char(47), char(5), char(0), &
& char(0), char(0), char(100), char(0), char(2), char(0), &
& char(0), char(0), char(0), char(0), char(0), char(0), &
& char(1), char(8), char(1), char(1), char(1), char(Nan), &
& char(Nan), char(Nan), char(Nan), char(0), char(0), &
& char(1), char(8), char(1), char(1), char(1), char(0), &
& char(0), char(0), char(0), char(0), char(0), &
& char(0), char(0), char(0), char(0), char(0), char(0), &
& char(0), char(0), char(0), char(0), char(0), char(0), &
& char(0), char(0), char(0), char(0), char(0), char(0), &
Expand All @@ -87,7 +87,7 @@ end subroutine gf_unpack2
& char(0), char(0), char(0), char(12), char(7), char(1), &
& char(0), char(0), char(0), char(0), char(0), char(0), &
! section 8
& "7", "7", "7", "7" /)
& "7", "7", "7", "7" /)

print *, ''//NEW_LINE('A')//'Calling grib_info ...'
call gribinfo(fgrib, fgrib_len, listsec0, listsec1, &
Expand Down
2 changes: 1 addition & 1 deletion tests/test_index_gdas.F90
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ end subroutine getgb2s
if (i .eq. 2) then
call getidx(LUGB, LUGI, cbuf, nlen, nnum, iret)
elseif (i .eq. 3) then
call getidx(LUGB, LUGI * -1, cbuf, nlen, nnum, iret)
call getidx(LUGB, LUGI * (-1), cbuf, nlen, nnum, iret)
else
call getidx(LUGB, 0, cbuf, nlen, nnum, iret)
endif
Expand Down
2 changes: 1 addition & 1 deletion tests/test_mkieee.F90
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ program test_mkieee
#ifdef KIND_4
integer, parameter :: num = 9
real :: rieee(num)
real :: a(num) = (/ real :: 4.3, 5.6, 1.67, 2.33, -4.3, 0.33, 0.0, -400.0, 101029284739847594/)
real :: a(num) = (/ real :: 4.3, 5.6, 1.67, 2.33, -4.3, 0.33, 0.0, -400.0, 101029284739847594.0/)
real :: b(num)
integer :: i

Expand Down