Skip to content

Commit 102ad32

Browse files
turned on error message, fixed tests (#128)
1 parent 21eaf30 commit 102ad32

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/grib2_all_tables_module.F90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1410,8 +1410,8 @@ subroutine get_g2_fixedsurfacetypes(key, value, ierr)
14101410
enddo
14111411

14121412
value=table4_5(66)%fixedsurfacetypesval
1413-
! print *, 'get_g2_fixedsurfacetypes key: ', trim(key), value, &
1414-
! ' not found in table 4.5'
1413+
print *, 'get_g2_fixedsurfacetypes key: ', trim(key), value, &
1414+
' not found in table 4.5'
14151415
ierr=9
14161416
return
14171417
end subroutine get_g2_fixedsurfacetypes

tests/test_g2tmpl_pdt4_46.F90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ Program test_g2tmpl_pdt4_46
2020
type_of_stat_proc, type_of_time_inc, &
2121
stat_unit_time_key, stat_unit_time_key_succ
2222
integer(4) :: ipdstmpl46(35), ipdstmpllen, j
23-
integer(4) :: ipdstmpl46_old(35)=(/ 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, &
24-
0, 0, 0, 255, 0, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 /)
23+
integer(4) :: ipdstmpl46_old(35)=(/ 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, &
24+
0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 /)
2525
integer :: ipdsnum = 46
2626

2727
ipdstmpllen = 35
@@ -39,10 +39,10 @@ Program test_g2tmpl_pdt4_46
3939
min_obs_cutoff = 0
4040
unit_of_time_key = 'minute'
4141
fcst_time = 0
42-
lvl_type1 = 'xxx'
42+
lvl_type1 = 'surface'
4343
scale_fac1 = 0
4444
scaled_val1 = 0
45-
lvl_type2 = 'xxx'
45+
lvl_type2 = 'surface'
4646
scale_fac2 = 0
4747
scaled_val2 = 0
4848
year_intvl = 0

tests/test_g2tmpl_pdt4_9.F90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ Program test_g2tmpl_pdt4_9
2121
type_of_stat_proc, type_of_time_inc, &
2222
stat_unit_time_key, stat_unit_time_key_succ
2323

24-
integer(4) :: ipdstmpl9_old(36)=(/ 2, 220, 0, 0, 0, 0, 0, 0, 0, 255, 0, 0, &
25-
255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 /)
24+
integer(4) :: ipdstmpl9_old(36)=(/ 2, 220, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, &
25+
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 /)
2626
integer ipdsnum, ipdstmpllen, j
2727

2828
print *, 'Testing g2sec4_temp9...'
@@ -35,10 +35,10 @@ Program test_g2tmpl_pdt4_9
3535
min_obs_cutoff = 0
3636
unit_of_time_key = 'minute'
3737
fcst_time = 0
38-
lvl_type1 = 'xxx'
38+
lvl_type1 = 'surface'
3939
scale_fac1 = 0
4040
scaled_val1 = 0
41-
lvl_type2 = 'xxx'
41+
lvl_type2 = 'surface'
4242
scale_fac2 = 0
4343
scaled_val2 = 0
4444
prob_num = 0

0 commit comments

Comments
 (0)