NCEPLIBS-bufr  12.0.1
closbf.f File Reference

Close a previously opened file and disconnect it from the NCEPLIBS-bufr software. More...

Go to the source code of this file.

Functions/Subroutines

recursive subroutine closbf (LUNIT)
 Close the connection between logical unit LUNIT and the NCEPLIBS-bufr software. More...
 

Detailed Description

Close a previously opened file and disconnect it from the NCEPLIBS-bufr software.

Author
J. Woollen, J. Ator
Date
1994-01-06

Definition in file closbf.f.

Function/Subroutine Documentation

◆ closbf()

recursive subroutine closbf (   LUNIT)

Close the connection between logical unit LUNIT and the NCEPLIBS-bufr software.

Remarks
  • This subroutine will execute a Fortran "CLOSE" on logical unit LUNIT, even though subroutine openbf() didn't previously handle the corresponding Fortran "OPEN" of the same file.
  • It's a good idea to call this subroutine for every LUNIT that was opened to the software via openbf(); however, it's especially important to do so when writing/encoding a BUFR file, in order to ensure that all output is properly flushed to LUNIT.
Parameters
[in]LUNIT- integer: Fortran logical unit number for BUFR file.
Author
J. Woollen, J. Ator
Date
1994-01-06

Definition at line 23 of file closbf.f.

References closmg(), errwrt(), modv_im8b::im8b, moda_nulbfr::null, status(), wtstat(), and x84().

Referenced by bufr_c2f_interface::closbf_c(), copybf(), datebf(), dumpbf(), exitbufr(), gettab(), mesgbc(), mesgbf(), split_by_subset(), ufbinx(), ufbmem(), ufbmex(), and ufbtab().