NCEPLIBS-bufr 11.7.1
ardllocf.f
Go to the documentation of this file.
1C> @file
2C> @brief Free all dynamically-allocated memory within internal
3C> Fortran language arrays.
4
5C> This subroutine frees any memory that was dynamically allocated
6C> during a previous call to subroutine arallocf().
7C>
8C> @author J. Ator
9C> @date 2014-12-04
10C>
11C> <b>Program history log:</b>
12C> | Date | Programmer | Comments |
13C> | -----|------------|----------|
14C> | 2014-12-04 | J. Ator | Original author |
15C>
16 SUBROUTINE ardllocf
17
18 USE moda_usrint
19 USE moda_usrbit
20 USE moda_ival
21 USE moda_msgcwd
22 USE moda_stbfr
23 USE moda_ufbcpl
24 USE moda_sc3bfr
25 USE moda_unptyp
26 USE moda_lushr
27 USE moda_nulbfr
28 USE moda_stcode
29 USE moda_idrdm
30 USE moda_xtab
31 USE moda_msglim
32 USE moda_bitbuf
33 USE moda_mgwa
34 USE moda_mgwb
35 USE moda_bufrmg
36 USE moda_bufrsr
37 USE moda_msgmem
38 USE moda_tababd
39 USE moda_tables
40 USE moda_usrtmp
41 USE moda_ivttmp
42 USE moda_comprx
43 USE moda_comprs
44 USE moda_mstabs
45 USE moda_rdmtb
46 USE moda_nmikrp
47 USE moda_s01cm
48 USE moda_bitmaps
49 USE moda_nrv203
50 USE moda_rlccmn
51
52C-----------------------------------------------------------------------
53C-----------------------------------------------------------------------
54
55C MODA_USRINT arrays.
56
57 DEALLOCATE( nval )
58 DEALLOCATE( inv )
59 DEALLOCATE( nrfelm )
60 DEALLOCATE( val )
61
62C MODA_USRBIT arrays.
63
64 DEALLOCATE( nbit )
65 DEALLOCATE( mbit )
66
67C MODA_IVAL arrays.
68
69 DEALLOCATE( ival )
70
71C MODA_MSGCWD arrays.
72
73 DEALLOCATE( nmsg )
74 DEALLOCATE( nsub )
75 DEALLOCATE( msub )
76 DEALLOCATE( inode )
77 DEALLOCATE( idate )
78
79C MODA_STBFR arrays.
80
81 DEALLOCATE( iolun )
82 DEALLOCATE( iomsg )
83
84C MODA_UFBCPL arrays.
85
86 DEALLOCATE( luncpy )
87
88C MODA_SC3BFR arrays.
89
90 DEALLOCATE( isc3 )
91 DEALLOCATE( tamnem )
92
93C MODA_UNPTYP arrays.
94
95 DEALLOCATE( msgunp )
96
97C MODA_LUSHR arrays.
98
99 DEALLOCATE( lus )
100
101C MODA_NULBFR arrays.
102
103 DEALLOCATE( null )
104
105C MODA_STCODE arrays.
106
107 DEALLOCATE( iscodes )
108
109C MODA_IDRDM arrays.
110
111 DEALLOCATE( idrdm )
112
113C MODA_XTAB arrays.
114
115 DEALLOCATE( xtab )
116
117C MODA_MSGLIM arrays.
118
119 DEALLOCATE( msglim )
120
121C MODA_BITBUF arrays.
122
123 DEALLOCATE( ibay )
124 DEALLOCATE( mbyt )
125 DEALLOCATE( mbay )
126
127C MODA_MGWA arrays.
128
129 DEALLOCATE( mgwa )
130
131C MODA_MGWB arrays.
132
133 DEALLOCATE( mgwb )
134
135C MODA_BUFRMG arrays.
136
137 DEALLOCATE( msglen )
138 DEALLOCATE( msgtxt )
139
140C MODA_BUFRSR arrays.
141
142 DEALLOCATE( jsr )
143 DEALLOCATE( jbay )
144
145C MODA_MSGMEM arrays.
146
147 DEALLOCATE( msgp )
148 DEALLOCATE( msgs )
149 DEALLOCATE( mdx )
150 DEALLOCATE( ipdxm )
151 DEALLOCATE( ifdxts )
152 DEALLOCATE( icdxts )
153 DEALLOCATE( ipmsgs )
154
155C MODA_TABABD arrays.
156
157 DEALLOCATE( ntba )
158 DEALLOCATE( ntbb )
159 DEALLOCATE( ntbd )
160 DEALLOCATE( mtab )
161 DEALLOCATE( idna )
162 DEALLOCATE( idnb )
163 DEALLOCATE( idnd )
164 DEALLOCATE( taba )
165 DEALLOCATE( tabb )
166 DEALLOCATE( tabd )
167
168C MODA_TABLES arrays.
169
170 DEALLOCATE( tag )
171 DEALLOCATE( typ )
172 DEALLOCATE( knt )
173 DEALLOCATE( jump )
174 DEALLOCATE( link )
175 DEALLOCATE( jmpb )
176 DEALLOCATE( ibt )
177 DEALLOCATE( irf )
178 DEALLOCATE( isc )
179 DEALLOCATE( itp )
180 DEALLOCATE( vali )
181 DEALLOCATE( knti )
182 DEALLOCATE( iseq )
183 DEALLOCATE( jseq )
184
185C MODA_USRTMP arrays.
186
187 DEALLOCATE( iutmp )
188 DEALLOCATE( vutmp )
189
190C MODA_IVTTMP arrays.
191
192 DEALLOCATE( ttmp )
193 DEALLOCATE( itmp )
194 DEALLOCATE( vtmp )
195
196C MODA_COMPRX arrays.
197
198 DEALLOCATE( kmin )
199 DEALLOCATE( kmax )
200 DEALLOCATE( kmis )
201 DEALLOCATE( kbit )
202 DEALLOCATE( ityp )
203 DEALLOCATE( iwid )
204 DEALLOCATE( cstr )
205
206C MODA_COMPRS arrays.
207
208 DEALLOCATE( matx )
209 DEALLOCATE( catx )
210
211C MODA_MSTABS arrays.
212
213 DEALLOCATE( ibfxyn )
214 DEALLOCATE( cbscl )
215 DEALLOCATE( cbsref )
216 DEALLOCATE( cbbw )
217 DEALLOCATE( cbunit )
218 DEALLOCATE( cbmnem )
219 DEALLOCATE( cbelem )
220 DEALLOCATE( idfxyn )
221 DEALLOCATE( cdseq )
222 DEALLOCATE( cdmnem )
223 DEALLOCATE( ndelem )
224 DEALLOCATE( idefxy )
225
226C MODA_RDMTB arrays.
227
228 DEALLOCATE( iefxyn )
229 DEALLOCATE( cmdscb )
230 DEALLOCATE( cmdscd )
231 DEALLOCATE( ceelem )
232
233C MODA_NMIKRP arrays.
234
235 DEALLOCATE( nem )
236 DEALLOCATE( irp )
237 DEALLOCATE( krp )
238
239C MODA_S01CM arrays.
240
241 DEALLOCATE( ivmnem )
242 DEALLOCATE( cmnem )
243
244C MODA_BITMAPS arrays.
245
246 DEALLOCATE( inodtamc )
247 DEALLOCATE( ntco )
248 DEALLOCATE( ctco )
249 DEALLOCATE( inodtco )
250 DEALLOCATE( nbtmse )
251 DEALLOCATE( istbtm )
252 DEALLOCATE( iszbtm )
253 DEALLOCATE( ibtmse )
254
255C MODA_NRV203 arrays.
256
257 DEALLOCATE( tagnrv )
258 DEALLOCATE( inodnrv )
259 DEALLOCATE( nrv )
260 DEALLOCATE( isnrv )
261 DEALLOCATE( ienrv )
262
263C MODA_RLCCMN arrays.
264
265 DEALLOCATE( irnch )
266 DEALLOCATE( irbit )
267 DEALLOCATE( crtag )
268
269C C language arrays.
270
271 CALL ardllocc
272
273 RETURN
274 END
void ardllocc(void)
This subroutine frees any memory that was dynamically allocated during a previous call to subroutine ...
Definition: ardllocc.c:23
subroutine ardllocf
This subroutine frees any memory that was dynamically allocated during a previous call to subroutine ...
Definition: ardllocf.f:17
This module contains array and variable declarations used to store BUFR messages internally for multi...
Definition: moda_bitbuf.F:10
integer, dimension(:), allocatable mbyt
Length (in bytes) of current BUFR message for each internal I/O stream.
Definition: moda_bitbuf.F:25
integer, dimension(:,:), allocatable mbay
Current BUFR message for each internal I/O stream.
Definition: moda_bitbuf.F:26
This module contains array and variable declarations used to store bitmaps internally within a data s...
Definition: moda_bitmaps.F:13
integer, dimension(:), allocatable iszbtm
Size of bitmap (total number of entries, whether "set" (set to a value of 0) or not).
Definition: moda_bitmaps.F:84
integer, dimension(:,:), allocatable ibtmse
Ordinal positions in bitmap of bits that were "set" (set to a value of 0); these ordinal positions ca...
Definition: moda_bitmaps.F:85
integer, dimension(:), allocatable nbtmse
Number of "set" entries (set to a value of 0) in the bitmap.
Definition: moda_bitmaps.F:82
integer, dimension(:), allocatable inodtamc
Entries within jump/link table which contain Table A mnemonics.
Definition: moda_bitmaps.F:78
integer, dimension(:,:), allocatable inodtco
Entries within jump/link table which contain Table C operators.
Definition: moda_bitmaps.F:81
integer, dimension(:), allocatable istbtm
Ordinal position in data subset definition corresponding to the first entry of the bitmap.
Definition: moda_bitmaps.F:83
integer, dimension(:), allocatable ntco
Number of Table C operators (with an XX value of 21 or greater) within the data subset definition of ...
Definition: moda_bitmaps.F:79
character *6, dimension(:,:), allocatable ctco
Table C operators corresponding to inodtco.
Definition: moda_bitmaps.F:80
This module contains array and variable declarations used to store the contents of one or more BUFR f...
Definition: moda_msgmem.F:14
integer, dimension(:), allocatable msgs
BUFR messages read from one or more BUFR files.
Definition: moda_msgmem.F:80
integer, dimension(:), allocatable ifdxts
Pointers to the beginning of each DX BUFR table within mdx.
Definition: moda_msgmem.F:83
integer, dimension(:), allocatable icdxts
Number of consecutive messages within mdx which constitute each DX BUFR table, beginning with the cor...
Definition: moda_msgmem.F:84
integer, dimension(:), allocatable ipdxm
Pointers to the beginning of each message within mdx.
Definition: moda_msgmem.F:82
integer, dimension(:), allocatable mdx
DX BUFR table messages read from one or more BUFR files, for use in decoding the messages in msgs.
Definition: moda_msgmem.F:81
integer, dimension(:), allocatable ipmsgs
Pointers to first message within msgs for which each DX BUFR table applies.
Definition: moda_msgmem.F:85
integer, dimension(:), allocatable msgp
Pointers to the beginning of each message within msgs (up to a maximum of MAXMSG, and where array ele...
Definition: moda_msgmem.F:79
This module contains array and variable declarations used to store master Table B and Table D entries...
Definition: moda_mstabs.F:15
integer, dimension(:), allocatable ndelem
Numbers of child descriptors corresponding to idfxyn.
Definition: moda_mstabs.F:72
integer, dimension(:), allocatable idfxyn
Bit-wise representations of FXY numbers for master Table D.
Definition: moda_mstabs.F:69
character, dimension(:,:), allocatable cdseq
Sequence names corresponding to idfxyn.
Definition: moda_mstabs.F:70
integer, dimension(:), allocatable idefxy
Bit-wise representations of child descriptors corresponding to idfxyn.
Definition: moda_mstabs.F:73
character, dimension(:,:), allocatable cbscl
Scale factors corresponding to ibfxyn.
Definition: moda_mstabs.F:63
character, dimension(:,:), allocatable cbmnem
Mnemonics corresponding to ibfxyn.
Definition: moda_mstabs.F:67
character, dimension(:,:), allocatable cbsref
Reference values corresponding to ibfxyn.
Definition: moda_mstabs.F:64
character, dimension(:,:), allocatable cbelem
Element names corresponding to ibfxyn.
Definition: moda_mstabs.F:68
character, dimension(:,:), allocatable cbunit
Units corresponding to ibfxyn.
Definition: moda_mstabs.F:66
character, dimension(:,:), allocatable cdmnem
Mnemonics corresponding to idfxyn.
Definition: moda_mstabs.F:71
integer, dimension(:), allocatable ibfxyn
Bit-wise representations of FXY numbers for master Table B.
Definition: moda_mstabs.F:62
character, dimension(:,:), allocatable cbbw
Bit widths corresponding to ibfxyn.
Definition: moda_mstabs.F:65
This module contains array and variable declarations for use with any 2-03-YYY (change reference valu...
Definition: moda_nrv203.F:15
integer, dimension(:), allocatable ienrv
End of entry range in jump/link table, within which the corresponding new reference value in nrv will...
Definition: moda_nrv203.F:63
integer, dimension(:), allocatable isnrv
Start of entry range in jump/link table, within which the corresponding new reference value in nrv wi...
Definition: moda_nrv203.F:62
integer, dimension(:), allocatable inodnrv
Entries within jump/link table which contain new reference values.
Definition: moda_nrv203.F:60
integer *8, dimension(:), allocatable nrv
New reference values corresponding to inodnrv.
Definition: moda_nrv203.F:61
character *8, dimension(:), allocatable tagnrv
Table B mnemonic to which the corresponding new reference value in nrv applies.
Definition: moda_nrv203.F:59
This module contains array and variable declarations used to store DX BUFR tables internally for mult...
Definition: moda_tababd.F:10
integer, dimension(:,:), allocatable idnb
Bit-wise representations of the FXY values corresponding to tabb.
Definition: moda_tababd.F:56
character *128, dimension(:,:), allocatable tabb
Table B entries for each internal I/O stream.
Definition: moda_tababd.F:59
character *128, dimension(:,:), allocatable taba
Table A entries for each internal I/O stream.
Definition: moda_tababd.F:58
integer, dimension(:,:), allocatable mtab
Entries within jump/link table corresponding to taba.
Definition: moda_tababd.F:54
integer, dimension(:), allocatable ntbd
Number of Table D entries for each internal I/O stream (up to a maximum of MAXTBD,...
Definition: moda_tababd.F:53
integer, dimension(:), allocatable ntbb
Number of Table B entries for each internal I/O stream (up to a maximum of MAXTBB,...
Definition: moda_tababd.F:52
integer, dimension(:), allocatable ntba
Number of Table A entries for each internal I/O stream (up to a maximum of MAXTBA,...
Definition: moda_tababd.F:51
integer, dimension(:,:), allocatable idnd
Bit-wise representations of the FXY values corresponding to tabd.
Definition: moda_tababd.F:57
integer, dimension(:,:,:), allocatable idna
Message types (in array element 1) and subtypes (in array element 2) corresponding to taba.
Definition: moda_tababd.F:55
character *600, dimension(:,:), allocatable tabd
Table D entries for each internal I/O stream.
Definition: moda_tababd.F:60
This module contains array and variable declarations used to store the internal jump/link table.
Definition: moda_tables.F:13
integer, dimension(:), allocatable link
Link indices corresponding to tag, typ and jmpb:
Definition: moda_tables.F:136
integer, dimension(:), allocatable itp
Integer type values corresponding to typ:
Definition: moda_tables.F:141
integer, dimension(:), allocatable isc
Scale factors corresponding to tag and typ:
Definition: moda_tables.F:140
character *3, dimension(:), allocatable typ
Type indicators corresponding to tag:
Definition: moda_tables.F:133
integer, dimension(:), allocatable jump
Jump forward indices corresponding to tag and typ:
Definition: moda_tables.F:135
integer, dimension(:), allocatable knti
Initialized replication counts corresponding to typ and jump:
Definition: moda_tables.F:143
integer, dimension(:), allocatable ibt
Bit widths corresponding to tag and typ:
Definition: moda_tables.F:138
character *10, dimension(:), allocatable tag
Mnemonics in the jump/link table.
Definition: moda_tables.F:132
integer, dimension(:), allocatable irf
Reference values corresponding to tag and typ:
Definition: moda_tables.F:139
real *8, dimension(:), allocatable vali
Initialized data values corresponding to typ:
Definition: moda_tables.F:142
integer, dimension(:), allocatable jmpb
Jump backward indices corresponding to tag and typ:
Definition: moda_tables.F:137