NCEPLIBS-bufr  12.0.1
fortran_open.F90
Go to the documentation of this file.
1 
5 
15  recursive subroutine fortran_open(filename, lunit, format, position, iret)
16 
17  use modv_im8b
18 
19  implicit none
20  character*(*), intent(in) :: filename, format, position
21  integer, intent(in) :: lunit
22  integer, intent(out) :: iret
23  integer my_lunit
24 
25 ! check for i8 integers
26 
27  if(im8b) then
28  im8b=.false.
29 
30  call x84(lunit,my_lunit,1)
31  call fortran_open(filename,my_lunit,format,position,iret)
32  call x48(iret,iret,1)
33 
34  im8b=.true.
35  return
36  endif
37 
38  open(lunit, file=trim(filename), form=trim(format), &
39  position=trim(position), iostat=iret)
40 
41  end subroutine
recursive subroutine fortran_open(filename, lunit, format, position, iret)
Open a Fortran file on the local system.
This module declares and initializes the IM8B variable.
logical, public im8b
Status indicator to keep track of whether all future calls to BUFRLIB subroutines and functions from ...
subroutine x48(IIN4, IOUT8, NVAL)
Encode one or more 4-byte integer values as 8-byte integer values.
Definition: x48.F:19
subroutine x84(IIN8, IOUT4, NVAL)
Encode one or more 8-byte integer values as 4-byte integer values.
Definition: x84.F:19