3 C$$$ SUBPROGRAM DOCUMENTATION BLOCK
6 C PRGMMR: ATOR ORG: NP12 DATE: 2005-11-29
8 C ABSTRACT: GIVEN AN INTEGER ARRAY CONTAINING SECTION ZERO FROM A
9 C BUFR MESSAGE, THIS FUNCTION DETERMINES A COUNT OF MACHINE WORDS
10 C (I.E. INTEGER ARRAY MEMBERS) THAT WILL HOLD THE ENTIRE MESSAGE.
11 C NOTE THAT THIS COUNT MAY BE GREATER THAN THE MINIMUM NUMBER
12 C OF WORDS REQUIRED TO HOLD THE MESSAGE.
14 C PROGRAM HISTORY LOG:
15 C 2005-11-29 J. ATOR -- ORIGINAL AUTHOR
18 C INPUT ARGUMENT LIST:
19 C MBAY - INTEGER: *-WORD ARRAY CONTAINING SECTION ZERO
22 C OUTPUT ARGUMENT LIST:
23 C NMWRD - INTEGER: BUFR MESSAGE LENGTH (IN MACHINE WORDS)
26 C THIS ROUTINE CALLS: IUPBS01
27 C THIS ROUTINE IS CALLED BY: CNVED4 CPDXMM LMSG MSGWRT
28 C PADMSG STBFDX UFBMEM UFBMEX
29 C Also called by application programs.
32 C LANGUAGE: FORTRAN 77
33 C MACHINE: PORTABLE TO ALL PLATFORMS
37 COMMON /HRDWRD
/ NBYTW
,NBITW
,IORD
(8)
41 C-----------------------------------------------------------------------
42 C-----------------------------------------------------------------------
44 LENM
= IUPBS01
(MBAY
,'LENM')
48 NMWRD
= ((LENM
/8)+1)*(8/NBYTW
)