NCEPLIBS-bufr  11.5.0
 All Data Structures Files Functions Variables Pages
moda_mstabs.F
Go to the documentation of this file.
1 C> @file
2 C> @brief Declare arrays for internal storage of master Table B
3 C> and Table D entries.
4 
5 C> This module contains array and variable declarations used to
6 C> store master Table B and Table D entries within internal
7 C> memory.
8 C>
9 C> <p>Data values within this module are stored by subroutine
10 C> ireadmt().
11 C>
12 C> @author J. Ator
13 C> @date 2014-12-10
14 
15  MODULE moda_mstabs
16 
17 #ifndef MAXCD_H
18 #define MAXCD_H
19  USE modv_maxcd
20 #endif
21 
22 #ifndef MXMTBB_H
23 #define MXMTBB_H
24  USE modv_mxmtbb
25 #endif
26 
27 #ifndef MXMTBD_H
28 #define MXMTBD_H
29  USE modv_mxmtbd
30 #endif
31 
32 C> @var nmtb
33 C> Number of master Table B entries (up to a maximum of MXMTBB).
34 C>
35 C> @var ibfxyn
36 C> Bitwise representations of FXY numbers for master Table B.
37 C>
38 C> @var cbscl
39 C> Scale factors corresponding to ibfxyn.
40 C>
41 C> @var cbsref
42 C> Reference values corresponding to ibfxyn.
43 C>
44 C> @var cbbw
45 C> Bit widths corresponding to ibfxyn.
46 C>
47 C> @var cbunit
48 C> Units corresponding to ibfxyn.
49 C>
50 C> @var cbmnem
51 C> Mnemonics corresponding to ibfxyn.
52 C>
53 C> @var cbelem
54 C> Element names corresponding to ibfxyn.
55 C>
56 C> @var nmtd
57 C> Number of master Table D entries (up to a maximum of MXMTBD).
58 C>
59 C> @var idfxyn
60 C> Bitwise representations of FXY numbers for master Table D.
61 C>
62 C> @var cdseq
63 C> Sequence names corresponding to idfxyn.
64 C>
65 C> @var cdmnem
66 C> Mnemonics corresponding to idfxyn.
67 C>
68 C> @var ndelem
69 C> Numbers of child descriptors corresponding to idfxyn.
70 C>
71 C> @var idefxy
72 C> Bitwise representations of child descriptors corresponding
73 C> to idfxyn.
74 
75 #ifdef DYNAMIC_ALLOCATION
76  INTEGER :: nmtb
77  INTEGER :: nmtd
78  INTEGER, ALLOCATABLE :: ibfxyn(:)
79  CHARACTER, ALLOCATABLE :: cbscl(:,:)
80  CHARACTER, ALLOCATABLE :: cbsref(:,:)
81  CHARACTER, ALLOCATABLE :: cbbw(:,:)
82  CHARACTER, ALLOCATABLE :: cbunit(:,:)
83  CHARACTER, ALLOCATABLE :: cbmnem(:,:)
84  CHARACTER, ALLOCATABLE :: cbelem(:,:)
85  INTEGER, ALLOCATABLE :: idfxyn(:)
86  CHARACTER, ALLOCATABLE :: cdseq(:,:)
87  CHARACTER, ALLOCATABLE :: cdmnem(:,:)
88  INTEGER, ALLOCATABLE :: ndelem(:)
89  INTEGER, ALLOCATABLE :: idefxy(:)
90 #else
91  INTEGER, BIND(C) :: NMTB
92  INTEGER, BIND(C) :: NMTD
93  INTEGER, BIND(C) :: IBFXYN(MXMTBB)
94  CHARACTER, BIND(C) :: CBSCL(4,MXMTBB)
95  CHARACTER, BIND(C) :: CBSREF(12,MXMTBB)
96  CHARACTER, BIND(C) :: CBBW(4,MXMTBB)
97  CHARACTER, BIND(C) :: CBUNIT(14,MXMTBB)
98  CHARACTER, BIND(C) :: CBMNEM(8,MXMTBB)
99  CHARACTER, BIND(C) :: CBELEM(120,MXMTBB)
100  INTEGER, BIND(C) :: IDFXYN(MXMTBD)
101  CHARACTER, BIND(C) :: CDSEQ(120,MXMTBD)
102  CHARACTER, BIND(C) :: CDMNEM(8,MXMTBD)
103  INTEGER, BIND(C) :: NDELEM(MXMTBD)
104  INTEGER, BIND(C) :: IDEFXY(MXMTBD*MAXCD)
105 #endif
106 
107  END MODULE
This module declares and initializes the MXMTBB variable.
Definition: modv_MXMTBB.F:16
This module declares and initializes the MXMTBD variable.
Definition: modv_MXMTBD.F:16
This module contains array and variable declarations used to store master Table B and Table D entries...
Definition: moda_mstabs.F:15
This module declares and initializes the MAXCD variable.
Definition: modv_MAXCD.F:16