Skip to content

Commit

Permalink
Update test_getdim.F90
Browse files Browse the repository at this point in the history
  • Loading branch information
AlysonStahl-NOAA committed Jun 18, 2024
1 parent c1a8645 commit 231173b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/test_getdim.F90
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
program test_getdim
implicit none

integer, parameter :: lcsec3 = 81
integer, parameter :: lcsec3 = 120
character(len=1) :: csec3(lcsec3)
integer :: width, height, iscan

Expand All @@ -29,7 +29,11 @@ end subroutine gf_unpack3
achar(8), achar(0), achar(0), achar(0), achar(9), achar(0), achar(0), achar(0), achar(10), achar(0), achar(0), &
achar(0), achar(11), achar(0), achar(0), achar(0), achar(12), achar(13), achar(0), achar(0), achar(0), achar(14), &
achar(0), achar(0), achar(0), achar(15), achar(0), achar(0), achar(0), achar(16), achar(0), achar(0), achar(0), &
achar(17), achar(18), achar(0), achar(0), achar(0), achar(0), achar(0), achar(0), achar(0), achar(0), achar(0) /)
achar(17), achar(18), achar(0), achar(0), achar(0), achar(0), achar(0), achar(0), achar(0), achar(0), achar(0), &
achar(0), achar(0), achar(0), achar(0), achar(0), achar(0), achar(0), achar(0), achar(0), achar(0), achar(0), &
achar(0), achar(0), achar(0), achar(0), achar(0), achar(0), achar(0), achar(0), achar(0), achar(0), achar(0), &
achar(0), achar(0), achar(0), achar(0), achar(0), achar(0), achar(0), achar(0), achar(0), achar(0), achar(0), &
achar(0), achar(0), achar(0), achar(0), achar(0), achar(0) /)

! Template num at pos 14 of section 3 = igds(5)

Expand All @@ -55,7 +59,6 @@ end subroutine gf_unpack3
if (height .ne. 8) stop 22
if (iscan .ne. 0) stop 32

! Uninitialized value memory error
print *, 'Template num 30 (Lambert Conformal)'
csec3(14) = achar(30)
call getdim(csec3, lcsec3, width, height, iscan)
Expand Down Expand Up @@ -85,7 +88,7 @@ end subroutine gf_unpack3
if (iscan .ne. 0) stop 36

! Uninitialized value memory error
if (.false.) then
if (.true.) then
print *, 'Template num 5 (Default case)'
csec3(14) = achar(5)
call getdim(csec3, lcsec3, width, height, iscan)
Expand Down

0 comments on commit 231173b

Please sign in to comment.