[1682] | 1 | !> @file write_3d_binary.f90 |
---|
[2000] | 2 | !------------------------------------------------------------------------------! |
---|
[2696] | 3 | ! This file is part of the PALM model system. |
---|
[1036] | 4 | ! |
---|
[2000] | 5 | ! PALM is free software: you can redistribute it and/or modify it under the |
---|
| 6 | ! terms of the GNU General Public License as published by the Free Software |
---|
| 7 | ! Foundation, either version 3 of the License, or (at your option) any later |
---|
| 8 | ! version. |
---|
[1036] | 9 | ! |
---|
| 10 | ! PALM is distributed in the hope that it will be useful, but WITHOUT ANY |
---|
| 11 | ! WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR |
---|
| 12 | ! A PARTICULAR PURPOSE. See the GNU General Public License for more details. |
---|
| 13 | ! |
---|
| 14 | ! You should have received a copy of the GNU General Public License along with |
---|
| 15 | ! PALM. If not, see <http://www.gnu.org/licenses/>. |
---|
| 16 | ! |
---|
[2718] | 17 | ! Copyright 1997-2018 Leibniz Universitaet Hannover |
---|
[2000] | 18 | !------------------------------------------------------------------------------! |
---|
[1036] | 19 | ! |
---|
[484] | 20 | ! Current revisions: |
---|
[1] | 21 | ! ----------------- |
---|
[1360] | 22 | ! |
---|
[2233] | 23 | ! |
---|
[1] | 24 | ! Former revisions: |
---|
| 25 | ! ----------------- |
---|
[3] | 26 | ! $Id: write_3d_binary.f90 2817 2018-02-19 16:32:21Z raasch $ |
---|
[2817] | 27 | ! Preliminary gust module interface implemented |
---|
| 28 | ! |
---|
| 29 | ! 2798 2018-02-09 17:16:39Z suehring |
---|
[2798] | 30 | ! Consider also default-type surfaces for surface temperature output. |
---|
| 31 | ! |
---|
| 32 | ! 2797 2018-02-08 13:24:35Z suehring |
---|
[2797] | 33 | ! Enable restarts for land- and urban-surface variables ghf_av, r_a_av and |
---|
| 34 | ! tsurf_av. |
---|
| 35 | ! |
---|
| 36 | ! 2718 2018-01-02 08:49:38Z maronga |
---|
[2716] | 37 | ! Corrected "Former revisions" section |
---|
| 38 | ! |
---|
| 39 | ! 2696 2017-12-14 17:12:51Z kanani |
---|
| 40 | ! Change in file header (GPL part) |
---|
[2696] | 41 | ! + kh_av, km_av (TG) |
---|
| 42 | ! |
---|
| 43 | ! 2292 2017-06-20 09:51:42Z schwenkel |
---|
[2292] | 44 | ! Implementation of new microphysic scheme: cloud_scheme = 'morrison' |
---|
| 45 | ! includes two more prognostic equations for cloud drop concentration (nc) |
---|
| 46 | ! and cloud water content (qc). |
---|
| 47 | ! |
---|
| 48 | ! 2233 2017-05-30 18:08:54Z suehring |
---|
[39] | 49 | ! |
---|
[2233] | 50 | ! 2232 2017-05-30 17:47:52Z suehring |
---|
| 51 | ! Adjustments to new surface concept - move output of surface varariables |
---|
| 52 | ! to surface_mod |
---|
| 53 | ! |
---|
[2032] | 54 | ! 2031 2016-10-21 15:11:58Z knoop |
---|
| 55 | ! renamed variable rho_av to rho_ocean_av |
---|
| 56 | ! |
---|
[2001] | 57 | ! 2000 2016-08-20 18:09:15Z knoop |
---|
| 58 | ! Forced header and separation lines into 80 columns |
---|
| 59 | ! |
---|
[1977] | 60 | ! 1976 2016-07-27 13:28:04Z maronga |
---|
| 61 | ! Radiation actions are now done directly in the respective module. |
---|
| 62 | ! Binary version increased to 4.5. |
---|
| 63 | ! |
---|
[1973] | 64 | ! 1972 2016-07-26 07:52:02Z maronga |
---|
| 65 | ! Land surface actions are now done directly in the respective module |
---|
| 66 | ! |
---|
[1851] | 67 | ! 1849 2016-04-08 11:33:18Z hoffmann |
---|
| 68 | ! prr, precipitation_amount moved to arrays_3d |
---|
[1852] | 69 | ! |
---|
[1834] | 70 | ! 1833 2016-04-07 14:23:03Z raasch |
---|
| 71 | ! statistics module replaced by spectra module |
---|
| 72 | ! |
---|
[1823] | 73 | ! 1822 2016-04-07 07:49:42Z hoffmann |
---|
| 74 | ! icloud_scheme replaced by microphysics_* |
---|
| 75 | ! |
---|
[1789] | 76 | ! 1788 2016-03-10 11:01:04Z maronga |
---|
| 77 | ! Added z0q and z0q_av |
---|
| 78 | ! |
---|
[1710] | 79 | ! 1709 2015-11-04 14:47:01Z maronga |
---|
| 80 | ! Added rad_lw_out_change_0, increased binary_version |
---|
| 81 | ! |
---|
[1692] | 82 | ! 1691 2015-10-26 16:17:44Z maronga |
---|
| 83 | ! Added output of radiative heating rates for RRTMG. Added output of ol. Removed |
---|
| 84 | ! output of rif. |
---|
| 85 | ! |
---|
[1683] | 86 | ! 1682 2015-10-07 23:56:08Z knoop |
---|
| 87 | ! Code annotations made doxygen readable |
---|
| 88 | ! |
---|
[1586] | 89 | ! 1585 2015-04-30 07:05:52Z maronga |
---|
| 90 | ! Adapted for RRTMG |
---|
| 91 | ! |
---|
[1552] | 92 | ! 1551 2015-03-03 14:18:16Z maronga |
---|
| 93 | ! Added support for binary ouput of land surface and radiation model data. |
---|
| 94 | ! |
---|
[1401] | 95 | ! 1400 2014-05-09 14:03:54Z knoop |
---|
| 96 | ! writing of arrays for random_generator_parallel added |
---|
| 97 | ! |
---|
[1360] | 98 | ! 1359 2014-04-11 17:15:14Z hoffmann |
---|
| 99 | ! Bugfix using cloud_droplets solved. qc, qr*, nr* are no longer written in case |
---|
| 100 | ! of cloud_droplets = .TRUE. |
---|
| 101 | ! |
---|
[1321] | 102 | ! 1320 2014-03-20 08:40:49Z raasch |
---|
| 103 | ! ONLY-attribute added to USE-statements, |
---|
| 104 | ! revision history before 2012 removed, |
---|
| 105 | ! comment fields (!:) to be used for variable explanations added to |
---|
| 106 | ! all variable declaration statements |
---|
| 107 | ! |
---|
[1319] | 108 | ! 1318 2014-03-17 13:35:16Z raasch |
---|
| 109 | ! module interfaces removed |
---|
| 110 | ! |
---|
[1116] | 111 | ! 1115 2013-03-26 18:16:16Z hoffmann |
---|
| 112 | ! qr and nr are restricted to precipitation |
---|
| 113 | ! |
---|
[1054] | 114 | ! 1053 2012-11-13 17:11:03Z hoffmann |
---|
| 115 | ! necessary expansions according to the two new prognostic equations (nr, qr) |
---|
| 116 | ! of the two-moment cloud physics scheme: |
---|
| 117 | ! +prr, prr_av, *, *_av, *s, *sws, *swst |
---|
| 118 | ! |
---|
[1037] | 119 | ! 1036 2012-10-22 13:43:42Z raasch |
---|
| 120 | ! code put under GPL (PALM 3.9) |
---|
| 121 | ! |
---|
[1002] | 122 | ! 1001 2012-09-13 14:08:46Z raasch |
---|
| 123 | ! all actions concerning leapfrog- and ups-scheme removed |
---|
| 124 | ! |
---|
[979] | 125 | ! 978 2012-08-09 08:28:32Z fricke |
---|
| 126 | ! +z0h, z0h_av |
---|
| 127 | ! |
---|
[1] | 128 | ! Revision 1.1 1998/03/18 20:20:21 raasch |
---|
| 129 | ! Initial revision |
---|
| 130 | ! |
---|
| 131 | ! |
---|
| 132 | ! Description: |
---|
| 133 | ! ------------ |
---|
[1682] | 134 | !> Binary output of variables and arrays for restarts. |
---|
[1] | 135 | !------------------------------------------------------------------------------! |
---|
[1682] | 136 | SUBROUTINE write_3d_binary |
---|
| 137 | |
---|
[1] | 138 | |
---|
[1320] | 139 | USE arrays_3d, & |
---|
[2292] | 140 | ONLY: e, kh, km, p, pt, q, ql, qc, nc, nr, prr, precipitation_amount, & |
---|
| 141 | qr, s, sa, u, u_m_l, u_m_n, u_m_r, u_m_s, v, v_m_l, v_m_n, & |
---|
| 142 | v_m_r, v_m_s, vpt, w, w_m_l, w_m_n, w_m_r, w_m_s |
---|
[1320] | 143 | |
---|
[1] | 144 | USE averaging |
---|
[1849] | 145 | |
---|
[1320] | 146 | USE control_parameters, & |
---|
[2797] | 147 | ONLY: cloud_physics, cloud_droplets, humidity, iran, & |
---|
| 148 | land_surface, microphysics_morrison, microphysics_seifert, & |
---|
| 149 | ocean, passive_scalar, topography, urban_surface |
---|
[2817] | 150 | |
---|
| 151 | USE gust_mod, & |
---|
| 152 | ONLY : gust_module_enabled, gust_write_restart_data |
---|
| 153 | |
---|
[1320] | 154 | USE indices, & |
---|
| 155 | ONLY: nxl, nxr, nys, nyn, nzb, nzt |
---|
| 156 | |
---|
[1353] | 157 | USE particle_attributes, & |
---|
[1320] | 158 | ONLY: iran_part |
---|
| 159 | |
---|
[1] | 160 | USE pegrid |
---|
[1320] | 161 | |
---|
[1353] | 162 | USE random_function_mod, & |
---|
[1320] | 163 | ONLY: random_iv, random_iy |
---|
[1400] | 164 | |
---|
| 165 | USE random_generator_parallel, & |
---|
| 166 | ONLY: id_random_array, seq_random_array |
---|
[1320] | 167 | |
---|
[1833] | 168 | USE spectra_mod, & |
---|
[1320] | 169 | ONLY: spectrum_x, spectrum_y |
---|
[1] | 170 | |
---|
[2232] | 171 | USE surface_mod, & |
---|
| 172 | ONLY : surface_write_restart_data |
---|
| 173 | |
---|
| 174 | |
---|
[1] | 175 | IMPLICIT NONE |
---|
| 176 | |
---|
[1682] | 177 | CHARACTER (LEN=10) :: binary_version !< |
---|
[1] | 178 | |
---|
| 179 | ! |
---|
| 180 | !-- Write control parameters and other variables for restart. |
---|
[143] | 181 | IF ( myid == 0 ) CALL write_var_list |
---|
[1] | 182 | |
---|
| 183 | ! |
---|
| 184 | !-- Write arrays. |
---|
[2696] | 185 | binary_version = '4.6' |
---|
[1] | 186 | |
---|
| 187 | WRITE ( 14 ) binary_version |
---|
| 188 | |
---|
| 189 | WRITE ( 14 ) numprocs, myid, nxl, nxr, nys, nyn, nzb, nzt |
---|
| 190 | |
---|
| 191 | ! |
---|
| 192 | !-- Attention: After changes to the following output commands the version number |
---|
| 193 | !-- --------- of the variable binary_version must be changed! |
---|
| 194 | !-- Also, the list of arrays to be read in read_3d_binary must be |
---|
| 195 | !-- adjusted accordingly. |
---|
| 196 | WRITE ( 14 ) 'e '; WRITE ( 14 ) e |
---|
| 197 | IF ( ALLOCATED( e_av ) ) THEN |
---|
| 198 | WRITE ( 14 ) 'e_av '; WRITE ( 14 ) e_av |
---|
| 199 | ENDIF |
---|
| 200 | WRITE ( 14 ) 'iran '; WRITE ( 14 ) iran, iran_part |
---|
| 201 | WRITE ( 14 ) 'kh '; WRITE ( 14 ) kh |
---|
[2696] | 202 | IF ( ALLOCATED( kh_av ) ) THEN |
---|
| 203 | WRITE ( 14 ) 'kh_av '; WRITE ( 14 ) kh_av |
---|
| 204 | ENDIF |
---|
[1] | 205 | WRITE ( 14 ) 'km '; WRITE ( 14 ) km |
---|
[2696] | 206 | IF ( ALLOCATED( km_av ) ) THEN |
---|
| 207 | WRITE ( 14 ) 'km_av '; WRITE ( 14 ) km_av |
---|
| 208 | ENDIF |
---|
[771] | 209 | IF ( ALLOCATED( lpt_av ) ) THEN |
---|
| 210 | WRITE ( 14 ) 'lpt_av '; WRITE ( 14 ) lpt_av |
---|
| 211 | ENDIF |
---|
[1] | 212 | IF ( ALLOCATED( lwp_av ) ) THEN |
---|
| 213 | WRITE ( 14 ) 'lwp_av '; WRITE ( 14 ) lwp_av |
---|
| 214 | ENDIF |
---|
| 215 | WRITE ( 14 ) 'p '; WRITE ( 14 ) p |
---|
| 216 | IF ( ALLOCATED( p_av ) ) THEN |
---|
| 217 | WRITE ( 14 ) 'p_av '; WRITE ( 14 ) p_av |
---|
| 218 | ENDIF |
---|
| 219 | IF ( ALLOCATED( pc_av ) ) THEN |
---|
| 220 | WRITE ( 14 ) 'pc_av '; WRITE ( 14 ) pc_av |
---|
| 221 | ENDIF |
---|
| 222 | IF ( ALLOCATED( pr_av ) ) THEN |
---|
| 223 | WRITE ( 14 ) 'pr_av '; WRITE ( 14 ) pr_av |
---|
| 224 | ENDIF |
---|
[1053] | 225 | IF ( ALLOCATED( prr ) ) THEN |
---|
| 226 | WRITE ( 14 ) 'prr '; WRITE ( 14 ) prr |
---|
| 227 | ENDIF |
---|
| 228 | IF ( ALLOCATED( prr_av ) ) THEN |
---|
| 229 | WRITE ( 14 ) 'prr_av '; WRITE ( 14 ) prr_av |
---|
| 230 | ENDIF |
---|
[72] | 231 | IF ( ALLOCATED( precipitation_amount ) ) THEN |
---|
| 232 | WRITE ( 14 ) 'precipitation_amount'; WRITE ( 14 ) precipitation_amount |
---|
| 233 | ENDIF |
---|
| 234 | IF ( ALLOCATED( precipitation_rate_av ) ) THEN |
---|
[1320] | 235 | WRITE ( 14 ) 'precipitation_rate_a'; WRITE ( 14 ) & |
---|
[72] | 236 | precipitation_rate_av |
---|
| 237 | ENDIF |
---|
[1] | 238 | WRITE ( 14 ) 'pt '; WRITE ( 14 ) pt |
---|
| 239 | IF ( ALLOCATED( pt_av ) ) THEN |
---|
| 240 | WRITE ( 14 ) 'pt_av '; WRITE ( 14 ) pt_av |
---|
| 241 | ENDIF |
---|
[1960] | 242 | IF ( humidity ) THEN |
---|
[1] | 243 | WRITE ( 14 ) 'q '; WRITE ( 14 ) q |
---|
| 244 | IF ( ALLOCATED( q_av ) ) THEN |
---|
| 245 | WRITE ( 14 ) 'q_av '; WRITE ( 14 ) q_av |
---|
| 246 | ENDIF |
---|
[790] | 247 | IF ( cloud_physics .OR. cloud_droplets ) THEN |
---|
[1359] | 248 | WRITE ( 14 ) 'ql '; WRITE ( 14 ) ql |
---|
[1] | 249 | IF ( ALLOCATED( ql_av ) ) THEN |
---|
| 250 | WRITE ( 14 ) 'ql_av '; WRITE ( 14 ) ql_av |
---|
| 251 | ENDIF |
---|
[1822] | 252 | IF ( .NOT. cloud_droplets ) THEN |
---|
[1359] | 253 | WRITE ( 14 ) 'qc '; WRITE ( 14 ) qc |
---|
[1115] | 254 | IF ( ALLOCATED( qc_av ) ) THEN |
---|
| 255 | WRITE ( 14 ) 'qc_av '; WRITE ( 14 ) qc_av |
---|
[1053] | 256 | ENDIF |
---|
[2292] | 257 | IF ( microphysics_morrison ) THEN |
---|
| 258 | WRITE ( 14 ) 'nc '; WRITE ( 14 ) nc |
---|
| 259 | IF ( ALLOCATED( nc_av ) ) THEN |
---|
| 260 | WRITE ( 14 ) 'nc_av '; WRITE ( 14 ) nc_av |
---|
| 261 | ENDIF |
---|
| 262 | ENDIF |
---|
[1822] | 263 | IF ( microphysics_seifert ) THEN |
---|
[1359] | 264 | WRITE ( 14 ) 'nr '; WRITE ( 14 ) nr |
---|
[1115] | 265 | IF ( ALLOCATED( nr_av ) ) THEN |
---|
| 266 | WRITE ( 14 ) 'nr_av '; WRITE ( 14 ) nr_av |
---|
| 267 | ENDIF |
---|
[1359] | 268 | WRITE ( 14 ) 'qr '; WRITE ( 14 ) qr |
---|
[1115] | 269 | IF ( ALLOCATED( qr_av ) ) THEN |
---|
| 270 | WRITE ( 14 ) 'qr_av '; WRITE ( 14 ) qr_av |
---|
| 271 | ENDIF |
---|
[1053] | 272 | ENDIF |
---|
| 273 | ENDIF |
---|
[1] | 274 | ENDIF |
---|
[354] | 275 | IF ( ALLOCATED( qsws_av ) ) THEN |
---|
| 276 | WRITE ( 14 ) 'qsws_av '; WRITE ( 14 ) qsws_av |
---|
| 277 | ENDIF |
---|
[1] | 278 | ENDIF |
---|
[1960] | 279 | IF ( passive_scalar ) THEN |
---|
| 280 | WRITE ( 14 ) 's '; WRITE ( 14 ) s |
---|
| 281 | IF ( ALLOCATED( s_av ) ) THEN |
---|
| 282 | WRITE ( 14 ) 's_av '; WRITE ( 14 ) s_av |
---|
| 283 | ENDIF |
---|
| 284 | IF ( ALLOCATED( ssws_av ) ) THEN |
---|
| 285 | WRITE ( 14 ) 'ssws_av '; WRITE ( 14 ) ssws_av |
---|
| 286 | ENDIF |
---|
| 287 | ENDIF |
---|
[94] | 288 | IF ( ocean ) THEN |
---|
[2031] | 289 | IF ( ALLOCATED( rho_ocean_av ) ) THEN |
---|
| 290 | WRITE ( 14 ) 'rho_ocean_av '; WRITE ( 14 ) rho_ocean_av |
---|
[96] | 291 | ENDIF |
---|
[94] | 292 | WRITE ( 14 ) 'sa '; WRITE ( 14 ) sa |
---|
[96] | 293 | IF ( ALLOCATED( sa_av ) ) THEN |
---|
| 294 | WRITE ( 14 ) 'sa_av '; WRITE ( 14 ) sa_av |
---|
| 295 | ENDIF |
---|
[94] | 296 | ENDIF |
---|
[1] | 297 | IF ( ALLOCATED( ql_c_av ) ) THEN |
---|
| 298 | WRITE ( 14 ) 'ql_c_av '; WRITE ( 14 ) ql_c_av |
---|
| 299 | ENDIF |
---|
| 300 | IF ( ALLOCATED( ql_v_av ) ) THEN |
---|
| 301 | WRITE ( 14 ) 'ql_v_av '; WRITE ( 14 ) ql_v_av |
---|
| 302 | ENDIF |
---|
| 303 | IF ( ALLOCATED( ql_vp_av ) ) THEN |
---|
| 304 | WRITE ( 14 ) 'ql_vp_av '; WRITE ( 14 ) ql_vp_av |
---|
| 305 | ENDIF |
---|
| 306 | IF ( ALLOCATED( qv_av ) ) THEN |
---|
| 307 | WRITE ( 14 ) 'qv_av '; WRITE ( 14 ) qv_av |
---|
| 308 | ENDIF |
---|
| 309 | WRITE ( 14 ) 'random_iv '; WRITE ( 14 ) random_iv |
---|
| 310 | WRITE ( 14 ) random_iy |
---|
[1400] | 311 | IF ( ALLOCATED( seq_random_array ) ) THEN |
---|
| 312 | WRITE ( 14 ) 'seq_random_array '; WRITE ( 14 ) id_random_array |
---|
| 313 | WRITE ( 14 ) seq_random_array |
---|
| 314 | ENDIF |
---|
[1] | 315 | IF ( ALLOCATED( s_av ) ) THEN |
---|
| 316 | WRITE ( 14 ) 's_av '; WRITE ( 14 ) s_av |
---|
| 317 | ENDIF |
---|
[354] | 318 | IF ( ALLOCATED( shf_av ) ) THEN |
---|
| 319 | WRITE ( 14 ) 'shf_av '; WRITE ( 14 ) shf_av |
---|
| 320 | ENDIF |
---|
[143] | 321 | IF ( ALLOCATED( spectrum_x ) ) THEN |
---|
| 322 | WRITE ( 14 ) 'spectrum_x '; WRITE ( 14 ) spectrum_x |
---|
| 323 | WRITE ( 14 ) 'spectrum_y '; WRITE ( 14 ) spectrum_y |
---|
| 324 | ENDIF |
---|
[1] | 325 | IF ( ALLOCATED( ts_av ) ) THEN |
---|
| 326 | WRITE ( 14 ) 'ts_av '; WRITE ( 14 ) ts_av |
---|
| 327 | ENDIF |
---|
| 328 | WRITE ( 14 ) 'u '; WRITE ( 14 ) u |
---|
| 329 | IF ( ALLOCATED( u_av ) ) THEN |
---|
| 330 | WRITE ( 14 ) 'u_av '; WRITE ( 14 ) u_av |
---|
| 331 | ENDIF |
---|
[73] | 332 | IF ( ALLOCATED( u_m_l ) ) THEN |
---|
| 333 | WRITE ( 14 ) 'u_m_l '; WRITE ( 14 ) u_m_l |
---|
| 334 | ENDIF |
---|
| 335 | IF ( ALLOCATED( u_m_n ) ) THEN |
---|
| 336 | WRITE ( 14 ) 'u_m_n '; WRITE ( 14 ) u_m_n |
---|
| 337 | ENDIF |
---|
| 338 | IF ( ALLOCATED( u_m_r ) ) THEN |
---|
| 339 | WRITE ( 14 ) 'u_m_r '; WRITE ( 14 ) u_m_r |
---|
| 340 | ENDIF |
---|
| 341 | IF ( ALLOCATED( u_m_s ) ) THEN |
---|
| 342 | WRITE ( 14 ) 'u_m_s '; WRITE ( 14 ) u_m_s |
---|
| 343 | ENDIF |
---|
[1] | 344 | IF ( ALLOCATED( us_av ) ) THEN |
---|
| 345 | WRITE ( 14 ) 'us_av '; WRITE ( 14 ) us_av |
---|
| 346 | ENDIF |
---|
| 347 | WRITE ( 14 ) 'v '; WRITE ( 14 ) v |
---|
| 348 | IF ( ALLOCATED( v_av ) ) THEN |
---|
| 349 | WRITE ( 14 ) 'v_av '; WRITE ( 14 ) v_av |
---|
| 350 | ENDIF |
---|
[73] | 351 | IF ( ALLOCATED( v_m_l ) ) THEN |
---|
| 352 | WRITE ( 14 ) 'v_m_l '; WRITE ( 14 ) v_m_l |
---|
| 353 | ENDIF |
---|
| 354 | IF ( ALLOCATED( v_m_n ) ) THEN |
---|
| 355 | WRITE ( 14 ) 'v_m_n '; WRITE ( 14 ) v_m_n |
---|
| 356 | ENDIF |
---|
| 357 | IF ( ALLOCATED( v_m_r ) ) THEN |
---|
| 358 | WRITE ( 14 ) 'v_m_r '; WRITE ( 14 ) v_m_r |
---|
| 359 | ENDIF |
---|
| 360 | IF ( ALLOCATED( v_m_s ) ) THEN |
---|
| 361 | WRITE ( 14 ) 'v_m_s '; WRITE ( 14 ) v_m_s |
---|
| 362 | ENDIF |
---|
[75] | 363 | IF ( humidity ) THEN |
---|
[1] | 364 | WRITE ( 14 ) 'vpt '; WRITE ( 14 ) vpt |
---|
| 365 | IF ( ALLOCATED( vpt_av ) ) THEN |
---|
| 366 | WRITE ( 14 ) 'vpt_av '; WRITE ( 14 ) vpt_av |
---|
| 367 | ENDIF |
---|
| 368 | ENDIF |
---|
| 369 | WRITE ( 14 ) 'w '; WRITE ( 14 ) w |
---|
| 370 | IF ( ALLOCATED( w_av ) ) THEN |
---|
| 371 | WRITE ( 14 ) 'w_av '; WRITE ( 14 ) w_av |
---|
| 372 | ENDIF |
---|
[73] | 373 | IF ( ALLOCATED( w_m_l ) ) THEN |
---|
| 374 | WRITE ( 14 ) 'w_m_l '; WRITE ( 14 ) w_m_l |
---|
| 375 | ENDIF |
---|
| 376 | IF ( ALLOCATED( w_m_n ) ) THEN |
---|
| 377 | WRITE ( 14 ) 'w_m_n '; WRITE ( 14 ) w_m_n |
---|
| 378 | ENDIF |
---|
| 379 | IF ( ALLOCATED( w_m_r ) ) THEN |
---|
| 380 | WRITE ( 14 ) 'w_m_r '; WRITE ( 14 ) w_m_r |
---|
| 381 | ENDIF |
---|
| 382 | IF ( ALLOCATED( w_m_s ) ) THEN |
---|
| 383 | WRITE ( 14 ) 'w_m_s '; WRITE ( 14 ) w_m_s |
---|
| 384 | ENDIF |
---|
[72] | 385 | IF ( ALLOCATED( z0_av ) ) THEN |
---|
| 386 | WRITE ( 14 ) 'z0_av '; WRITE ( 14 ) z0_av |
---|
| 387 | ENDIF |
---|
[978] | 388 | IF ( ALLOCATED( z0h_av ) ) THEN |
---|
| 389 | WRITE ( 14 ) 'z0h_av '; WRITE ( 14 ) z0h_av |
---|
| 390 | ENDIF |
---|
[1788] | 391 | IF ( ALLOCATED( z0q_av ) ) THEN |
---|
| 392 | WRITE ( 14 ) 'z0q_av '; WRITE ( 14 ) z0q_av |
---|
| 393 | ENDIF |
---|
[2797] | 394 | IF ( land_surface .OR. urban_surface ) THEN |
---|
| 395 | IF ( ALLOCATED( ghf_av ) ) THEN |
---|
| 396 | WRITE ( 14 ) 'ghf_av '; WRITE ( 14 ) ghf_av |
---|
| 397 | ENDIF |
---|
| 398 | IF ( ALLOCATED( r_a_av ) ) THEN |
---|
| 399 | WRITE ( 14 ) 'r_a_av '; WRITE ( 14 ) r_a_av |
---|
| 400 | ENDIF |
---|
| 401 | ENDIF |
---|
[2798] | 402 | IF ( ALLOCATED( tsurf_av ) ) THEN |
---|
| 403 | WRITE ( 14 ) 'tsurf_av '; WRITE ( 14 ) tsurf_av |
---|
| 404 | ENDIF |
---|
[1] | 405 | |
---|
| 406 | ! |
---|
| 407 | !-- Write end label. Unit 14 is closed in the main program. |
---|
| 408 | WRITE ( 14 ) '*** end *** ' |
---|
| 409 | |
---|
[2817] | 410 | IF ( gust_module_enabled ) THEN |
---|
| 411 | CALL gust_write_restart_data |
---|
| 412 | ENDIF |
---|
| 413 | |
---|
[2232] | 414 | CALL surface_write_restart_data |
---|
| 415 | |
---|
[1] | 416 | END SUBROUTINE write_3d_binary |
---|
[1320] | 417 | |
---|