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