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