NCEPLIBS-bufr  12.0.1
igetmxby.f
Go to the documentation of this file.
1 C> @file
2 C> @brief Get the maximum length of a BUFR message that can be
3 C> written to an output file.
4 C>
5 C> @author J. Ator @date 2016-06-27
6 
7 C> Get the maximum length of a BUFR message that can be written
8 C> to an output file.
9 C>
10 C> This function returns the maximum length of a BUFR message that
11 C> can be written to any output file by the NCEPLIBS-bufr software.
12 C>
13 C> @returns igetmxby - integer: Maximum length of a BUFR message
14 C> that can be written to an output file by the NCEPLIBS-bufr software.
15 C>
16 C> This maximum length value can be changed at any time via a
17 C> separate call to subroutine maxout().
18 C>
19 C> @author J. Ator @date 2016-06-27
20  RECURSIVE FUNCTION igetmxby() RESULT(IRET)
21 
22  USE modv_im8b
23 
24  USE moda_bitbuf
25 
26 c-----------------------------------------------------------------------
27 c-----------------------------------------------------------------------
28 
29 C CHECK FOR I8 INTEGERS.
30 
31  IF(im8b) THEN
32  im8b=.false.
33 
34  iret = igetmxby()
35 
36  im8b=.true.
37  RETURN
38  ENDIF
39 
40  CALL openbf(0,'FIRST',0)
41 
42  iret = maxbyt
43 
44  RETURN
45  END
recursive function igetmxby()
Get the maximum length of a BUFR message that can be written to an output file.
Definition: igetmxby.f:21
This module contains array and variable declarations used to store BUFR messages internally for multi...
integer maxbyt
Maximum length of an output BUFR message.
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 ...
recursive subroutine openbf(LUNIT, IO, LUNDX)
Connects a new file to the NCEPLIBS-bufr software for input or output operations, or initializes the ...
Definition: openbf.f:124