NCEPLIBS-bufr  12.2.0
All Data Structures Namespaces Files Functions Variables Macros Pages
openbt.F90
Go to the documentation of this file.
1 
5 
30 recursive subroutine openbt(lundx,mtyp)
31 
32  use modv_vars, only: im8b, iprt
33 
34  implicit none
35 
36  integer, intent(in) :: mtyp
37  integer, intent(out) :: lundx
38  integer my_mtyp
39 
40  character*128 errstr
41 
42  ! Check for I8 integers
43  if(im8b) then
44  im8b=.false.
45  call x84(mtyp,my_mtyp,1)
46  call openbt(lundx,my_mtyp)
47  call x48(lundx,lundx,1)
48  im8b=.true.
49  return
50  endif
51 
52  if(iprt>=0) then
53  call errwrt('+++++++++++++++++++++WARNING+++++++++++++++++++++++')
54  errstr = 'BUFRLIB: OPENBT - THIS IS A DUMMY BUFRLIB ROUTINE'// &
55  ' CALLED BY CKTABA OR APPL. PGM; OPENBT SHOULD BE INCL. IN-LINE IN APPL. PGM'
56  call errwrt(errstr)
57  call errwrt('+++++++++++++++++++++WARNING+++++++++++++++++++++++')
58  call errwrt(' ')
59  endif
60 
61  lundx = 0
62 
63  return
64 end subroutine openbt
subroutine errwrt(str)
Specify a custom location for the logging of error and diagnostic messages generated by the NCEPLIBS-...
Definition: errwrt.F90:32
recursive subroutine openbt(lundx, mtyp)
Specify a DX BUFR table of last resort, in case subroutine cktaba() is unable to locate a DX BUFR tab...
Definition: openbt.F90:31
subroutine x48(iin4, iout8, nval)
Encode one or more 4-byte integer values as 8-byte integer values.
Definition: x4884.F90:18
subroutine x84(iin8, iout4, nval)
Encode one or more 8-byte integer values as 4-byte integer values.
Definition: x4884.F90:65