NCEPLIBS-bufr  11.5.0
 All Data Structures Files Functions Variables Pages
ardllocf.F
Go to the documentation of this file.
1 C> @file
2 C> @brief Free all dynamically-allocated memory within internal
3 C> Fortran language arrays.
4 
5 C> This subroutine frees any memory that was dynamically allocated
6 C> during a previous call to subroutine arallocf().
7 C>
8 C> @author J. Ator
9 C> @date 2014-12-04
10 C>
11 C> <b>Program history log:</b>
12 C> - 2014-12-04 J. Ator -- Original author
13 C>
14  SUBROUTINE ardllocf
15 
16 #ifdef DYNAMIC_ALLOCATION
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 
52 C-----------------------------------------------------------------------
53 C-----------------------------------------------------------------------
54 
55 C MODA_USRINT arrays.
56 
57  DEALLOCATE( nval )
58  DEALLOCATE( inv )
59  DEALLOCATE( nrfelm )
60  DEALLOCATE( val )
61 
62 C MODA_USRBIT arrays.
63 
64  DEALLOCATE( nbit )
65  DEALLOCATE( mbit )
66 
67 C MODA_IVAL arrays.
68 
69  DEALLOCATE( ival )
70 
71 C MODA_MSGCWD arrays.
72 
73  DEALLOCATE( nmsg )
74  DEALLOCATE( nsub )
75  DEALLOCATE( msub )
76  DEALLOCATE( inode )
77  DEALLOCATE( idate )
78 
79 C MODA_STBFR arrays.
80 
81  DEALLOCATE( iolun )
82  DEALLOCATE( iomsg )
83 
84 C MODA_UFBCPL arrays.
85 
86  DEALLOCATE( luncpy )
87 
88 C MODA_SC3BFR arrays.
89 
90  DEALLOCATE( isc3 )
91  DEALLOCATE( tamnem )
92 
93 C MODA_UNPTYP arrays.
94 
95  DEALLOCATE( msgunp )
96 
97 C MODA_LUSHR arrays.
98 
99  DEALLOCATE( lus )
100 
101 C MODA_NULBFR arrays.
102 
103  DEALLOCATE( null )
104 
105 C MODA_STCODE arrays.
106 
107  DEALLOCATE( iscodes )
108 
109 C MODA_IDRDM arrays.
110 
111  DEALLOCATE( idrdm )
112 
113 C MODA_XTAB arrays.
114 
115  DEALLOCATE( xtab )
116 
117 C MODA_MSGLIM arrays.
118 
119  DEALLOCATE( msglim )
120 
121 C MODA_BITBUF arrays.
122 
123  DEALLOCATE( ibay )
124  DEALLOCATE( mbyt )
125  DEALLOCATE( mbay )
126 
127 C MODA_MGWA arrays.
128 
129  DEALLOCATE( mgwa )
130 
131 C MODA_MGWB arrays.
132 
133  DEALLOCATE( mgwb )
134 
135 C MODA_BUFRMG arrays.
136 
137  DEALLOCATE( msglen )
138  DEALLOCATE( msgtxt )
139 
140 C MODA_BUFRSR arrays.
141 
142  DEALLOCATE( jsr )
143  DEALLOCATE( jbay )
144 
145 C 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 
155 C 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 
168 C 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 
185 C MODA_USRTMP arrays.
186 
187  DEALLOCATE( iutmp )
188  DEALLOCATE( vutmp )
189 
190 C MODA_IVTTMP arrays.
191 
192  DEALLOCATE( ttmp )
193  DEALLOCATE( itmp )
194  DEALLOCATE( vtmp )
195 
196 C 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 
206 C MODA_COMPRS arrays.
207 
208  DEALLOCATE( matx )
209  DEALLOCATE( catx )
210 
211 C 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 
226 C MODA_RDMTB arrays.
227 
228  DEALLOCATE( iefxyn )
229  DEALLOCATE( cmdscb )
230  DEALLOCATE( cmdscd )
231  DEALLOCATE( ceelem )
232 
233 C MODA_NMIKRP arrays.
234 
235  DEALLOCATE( nem )
236  DEALLOCATE( irp )
237  DEALLOCATE( krp )
238 
239 C MODA_S01CM arrays.
240 
241  DEALLOCATE( ivmnem )
242  DEALLOCATE( cmnem )
243 
244 C 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 
255 C MODA_NRV203 arrays.
256 
257  DEALLOCATE( tagnrv )
258  DEALLOCATE( inodnrv )
259  DEALLOCATE( nrv )
260  DEALLOCATE( isnrv )
261  DEALLOCATE( ienrv )
262 
263 C MODA_RLCCMN arrays.
264 
265  DEALLOCATE( irnch )
266  DEALLOCATE( irbit )
267  DEALLOCATE( crtag )
268 
269 C C language arrays.
270 
271  CALL ardllocc
272 
273 #endif
274 
275  RETURN
276  END
This module contains array and variable declarations for use with any 2-03-YYY (change reference valu...
Definition: moda_nrv203.F:15
This module contains array and variable declarations used to store bitmaps internally within a data s...
Definition: moda_bitmaps.F:13
This module contains array and variable declarations used to store DX BUFR tables internally for mult...
Definition: moda_tababd.F:10
void ardllocc(void)
This subroutine frees any memory that was dynamically allocated during a previous call to subroutine ...
Definition: ardllocc.c:21
This module contains array and variable declarations used to store the contents of one or more BUFR f...
Definition: moda_msgmem.F:14
This module contains array and variable declarations used to store the internal jump/link table...
Definition: moda_tables.F:13
This module contains array and variable declarations used to store master Table B and Table D entries...
Definition: moda_mstabs.F:15
subroutine ardllocf
This subroutine frees any memory that was dynamically allocated during a previous call to subroutine ...
Definition: ardllocf.F:14
This module contains array and variable declarations used to store BUFR messages internally for multi...
Definition: moda_bitbuf.F:10