[1] | 1 | SUBROUTINE write_3d_binary |
---|
| 2 | |
---|
[1036] | 3 | !--------------------------------------------------------------------------------! |
---|
| 4 | ! This file is part of PALM. |
---|
| 5 | ! |
---|
| 6 | ! PALM is free software: you can redistribute it and/or modify it under the terms |
---|
| 7 | ! of the GNU General Public License as published by the Free Software Foundation, |
---|
| 8 | ! either version 3 of the License, or (at your option) any later version. |
---|
| 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 | ! |
---|
[1310] | 17 | ! Copyright 1997-2014 Leibniz Universitaet Hannover |
---|
[1036] | 18 | !--------------------------------------------------------------------------------! |
---|
| 19 | ! |
---|
[484] | 20 | ! Current revisions: |
---|
[1] | 21 | ! ----------------- |
---|
[1360] | 22 | ! |
---|
[1552] | 23 | ! |
---|
[1] | 24 | ! Former revisions: |
---|
| 25 | ! ----------------- |
---|
[3] | 26 | ! $Id: write_3d_binary.f90 1552 2015-03-03 14:27:15Z maronga $ |
---|
[39] | 27 | ! |
---|
[1552] | 28 | ! 1551 2015-03-03 14:18:16Z maronga |
---|
| 29 | ! Added support for binary ouput of land surface and radiation model data. |
---|
| 30 | ! |
---|
[1401] | 31 | ! 1400 2014-05-09 14:03:54Z knoop |
---|
| 32 | ! writing of arrays for random_generator_parallel added |
---|
| 33 | ! |
---|
[1360] | 34 | ! 1359 2014-04-11 17:15:14Z hoffmann |
---|
| 35 | ! Bugfix using cloud_droplets solved. qc, qr*, nr* are no longer written in case |
---|
| 36 | ! of cloud_droplets = .TRUE. |
---|
| 37 | ! |
---|
[1321] | 38 | ! 1320 2014-03-20 08:40:49Z raasch |
---|
| 39 | ! ONLY-attribute added to USE-statements, |
---|
| 40 | ! revision history before 2012 removed, |
---|
| 41 | ! comment fields (!:) to be used for variable explanations added to |
---|
| 42 | ! all variable declaration statements |
---|
| 43 | ! |
---|
[1319] | 44 | ! 1318 2014-03-17 13:35:16Z raasch |
---|
| 45 | ! module interfaces removed |
---|
| 46 | ! |
---|
[1116] | 47 | ! 1115 2013-03-26 18:16:16Z hoffmann |
---|
| 48 | ! qr and nr are restricted to precipitation |
---|
| 49 | ! |
---|
[1054] | 50 | ! 1053 2012-11-13 17:11:03Z hoffmann |
---|
| 51 | ! necessary expansions according to the two new prognostic equations (nr, qr) |
---|
| 52 | ! of the two-moment cloud physics scheme: |
---|
| 53 | ! +prr, prr_av, *, *_av, *s, *sws, *swst |
---|
| 54 | ! |
---|
[1037] | 55 | ! 1036 2012-10-22 13:43:42Z raasch |
---|
| 56 | ! code put under GPL (PALM 3.9) |
---|
| 57 | ! |
---|
[1002] | 58 | ! 1001 2012-09-13 14:08:46Z raasch |
---|
| 59 | ! all actions concerning leapfrog- and ups-scheme removed |
---|
| 60 | ! |
---|
[979] | 61 | ! 978 2012-08-09 08:28:32Z fricke |
---|
| 62 | ! +z0h, z0h_av |
---|
| 63 | ! |
---|
[1] | 64 | ! Revision 1.1 1998/03/18 20:20:21 raasch |
---|
| 65 | ! Initial revision |
---|
| 66 | ! |
---|
| 67 | ! |
---|
| 68 | ! Description: |
---|
| 69 | ! ------------ |
---|
| 70 | ! Binary output of variables and arrays for restarts. |
---|
| 71 | !------------------------------------------------------------------------------! |
---|
| 72 | |
---|
[1320] | 73 | USE arrays_3d, & |
---|
| 74 | ONLY: e, kh, km, p, pt, q, ql, qc, nr, nrs, nrsws, nrswst, qr, qrs, & |
---|
| 75 | qrsws, qrswst, qs, qsws, qswst, sa, saswsb, saswst, rif, & |
---|
| 76 | rif_wall, shf, ts, tswst, u, u_m_l, u_m_n, u_m_r, u_m_s, us, & |
---|
| 77 | usws, uswst, v, v_m_l, v_m_n, v_m_r, v_m_s, vpt, vsws, vswst, & |
---|
| 78 | w, w_m_l, w_m_n, w_m_r, w_m_s, z0, z0h |
---|
| 79 | |
---|
[1] | 80 | USE averaging |
---|
[1320] | 81 | |
---|
| 82 | USE cloud_parameters, & |
---|
| 83 | ONLY: prr, precipitation_amount |
---|
| 84 | |
---|
| 85 | USE control_parameters, & |
---|
| 86 | ONLY: iran, humidity, passive_scalar, cloud_physics, cloud_droplets, & |
---|
| 87 | icloud_scheme, precipitation, ocean, topography |
---|
| 88 | |
---|
| 89 | USE indices, & |
---|
| 90 | ONLY: nxl, nxr, nys, nyn, nzb, nzt |
---|
[1551] | 91 | |
---|
| 92 | USE land_surface_model_mod, & |
---|
| 93 | ONLY: c_liq_av, c_soil_av, c_veg_av, ghf_eb_av, lai_av, & |
---|
| 94 | qsws_eb_av, qsws_liq_eb_av, qsws_soil_eb_av, qsws_veg_eb_av, & |
---|
| 95 | land_surface, m_liq_eb, m_liq_eb_av, m_soil, m_soil_av, & |
---|
| 96 | nzb_soil, nzt_soil, shf_eb_av, t_soil, t_soil_av |
---|
[1320] | 97 | |
---|
[1353] | 98 | USE particle_attributes, & |
---|
[1320] | 99 | ONLY: iran_part |
---|
| 100 | |
---|
[1] | 101 | USE pegrid |
---|
[1320] | 102 | |
---|
[1551] | 103 | USE radiation_model_mod, & |
---|
| 104 | ONLY: radiation, rad_net_av, rad_sw_in_av |
---|
| 105 | |
---|
[1353] | 106 | USE random_function_mod, & |
---|
[1320] | 107 | ONLY: random_iv, random_iy |
---|
[1400] | 108 | |
---|
| 109 | USE random_generator_parallel, & |
---|
| 110 | ONLY: id_random_array, seq_random_array |
---|
[1320] | 111 | |
---|
| 112 | USE statistics, & |
---|
| 113 | ONLY: spectrum_x, spectrum_y |
---|
[1] | 114 | |
---|
| 115 | IMPLICIT NONE |
---|
| 116 | |
---|
[1320] | 117 | CHARACTER (LEN=10) :: binary_version !: |
---|
[1] | 118 | |
---|
| 119 | |
---|
| 120 | ! |
---|
| 121 | !-- Write control parameters and other variables for restart. |
---|
[143] | 122 | IF ( myid == 0 ) CALL write_var_list |
---|
[1] | 123 | |
---|
| 124 | ! |
---|
| 125 | !-- Write arrays. |
---|
[1551] | 126 | binary_version = '4.0' |
---|
[1] | 127 | |
---|
| 128 | WRITE ( 14 ) binary_version |
---|
| 129 | |
---|
| 130 | WRITE ( 14 ) numprocs, myid, nxl, nxr, nys, nyn, nzb, nzt |
---|
| 131 | |
---|
| 132 | ! |
---|
| 133 | !-- Attention: After changes to the following output commands the version number |
---|
| 134 | !-- --------- of the variable binary_version must be changed! |
---|
| 135 | !-- Also, the list of arrays to be read in read_3d_binary must be |
---|
| 136 | !-- adjusted accordingly. |
---|
| 137 | |
---|
[1551] | 138 | |
---|
| 139 | IF ( land_surface ) THEN |
---|
| 140 | IF ( ALLOCATED( c_liq_av ) ) THEN |
---|
| 141 | WRITE ( 14 ) 'c_liq_av '; WRITE ( 14 ) c_liq_av |
---|
| 142 | ENDIF |
---|
| 143 | IF ( ALLOCATED( c_soil_av ) ) THEN |
---|
| 144 | WRITE ( 14 ) 'c_soil_av '; WRITE ( 14 ) c_soil_av |
---|
| 145 | ENDIF |
---|
| 146 | IF ( ALLOCATED( c_veg_av ) ) THEN |
---|
| 147 | WRITE ( 14 ) 'c_veg_av '; WRITE ( 14 ) c_veg_av |
---|
| 148 | ENDIF |
---|
| 149 | ENDIF |
---|
[1] | 150 | WRITE ( 14 ) 'e '; WRITE ( 14 ) e |
---|
| 151 | IF ( ALLOCATED( e_av ) ) THEN |
---|
| 152 | WRITE ( 14 ) 'e_av '; WRITE ( 14 ) e_av |
---|
| 153 | ENDIF |
---|
| 154 | WRITE ( 14 ) 'iran '; WRITE ( 14 ) iran, iran_part |
---|
[1551] | 155 | IF ( land_surface ) THEN |
---|
| 156 | IF ( ALLOCATED( ghf_eb_av ) ) THEN |
---|
| 157 | WRITE ( 14 ) 'ghf_eb_av '; WRITE ( 14 ) ghf_eb_av |
---|
| 158 | ENDIF |
---|
| 159 | ENDIF |
---|
[1] | 160 | WRITE ( 14 ) 'kh '; WRITE ( 14 ) kh |
---|
| 161 | WRITE ( 14 ) 'km '; WRITE ( 14 ) km |
---|
[1551] | 162 | IF ( land_surface ) THEN |
---|
| 163 | IF ( ALLOCATED( lai_av ) ) THEN |
---|
| 164 | WRITE ( 14 ) 'lai_av '; WRITE ( 14 ) lai_av |
---|
| 165 | ENDIF |
---|
| 166 | ENDIF |
---|
[771] | 167 | IF ( ALLOCATED( lpt_av ) ) THEN |
---|
| 168 | WRITE ( 14 ) 'lpt_av '; WRITE ( 14 ) lpt_av |
---|
| 169 | ENDIF |
---|
[1] | 170 | IF ( ALLOCATED( lwp_av ) ) THEN |
---|
| 171 | WRITE ( 14 ) 'lwp_av '; WRITE ( 14 ) lwp_av |
---|
| 172 | ENDIF |
---|
[1551] | 173 | IF ( land_surface ) THEN |
---|
| 174 | WRITE ( 14 ) 'm_liq_eb '; WRITE ( 14 ) m_liq_eb |
---|
| 175 | IF ( ALLOCATED( m_liq_eb_av ) ) THEN |
---|
| 176 | WRITE ( 14 ) 'm_liq_eb_av '; WRITE ( 14 ) m_liq_eb_av |
---|
| 177 | ENDIF |
---|
| 178 | WRITE ( 14 ) 'm_soil '; WRITE ( 14 ) m_soil |
---|
| 179 | IF ( ALLOCATED( m_soil_av ) ) THEN |
---|
| 180 | WRITE ( 14 ) 'm_soil_av '; WRITE ( 14 ) m_soil_av |
---|
| 181 | ENDIF |
---|
| 182 | ENDIF |
---|
[1] | 183 | WRITE ( 14 ) 'p '; WRITE ( 14 ) p |
---|
| 184 | IF ( ALLOCATED( p_av ) ) THEN |
---|
| 185 | WRITE ( 14 ) 'p_av '; WRITE ( 14 ) p_av |
---|
| 186 | ENDIF |
---|
| 187 | IF ( ALLOCATED( pc_av ) ) THEN |
---|
| 188 | WRITE ( 14 ) 'pc_av '; WRITE ( 14 ) pc_av |
---|
| 189 | ENDIF |
---|
| 190 | IF ( ALLOCATED( pr_av ) ) THEN |
---|
| 191 | WRITE ( 14 ) 'pr_av '; WRITE ( 14 ) pr_av |
---|
| 192 | ENDIF |
---|
[1053] | 193 | IF ( ALLOCATED( prr ) ) THEN |
---|
| 194 | WRITE ( 14 ) 'prr '; WRITE ( 14 ) prr |
---|
| 195 | ENDIF |
---|
| 196 | IF ( ALLOCATED( prr_av ) ) THEN |
---|
| 197 | WRITE ( 14 ) 'prr_av '; WRITE ( 14 ) prr_av |
---|
| 198 | ENDIF |
---|
[72] | 199 | IF ( ALLOCATED( precipitation_amount ) ) THEN |
---|
| 200 | WRITE ( 14 ) 'precipitation_amount'; WRITE ( 14 ) precipitation_amount |
---|
| 201 | ENDIF |
---|
| 202 | IF ( ALLOCATED( precipitation_rate_av ) ) THEN |
---|
[1320] | 203 | WRITE ( 14 ) 'precipitation_rate_a'; WRITE ( 14 ) & |
---|
[72] | 204 | precipitation_rate_av |
---|
| 205 | ENDIF |
---|
[1] | 206 | WRITE ( 14 ) 'pt '; WRITE ( 14 ) pt |
---|
| 207 | IF ( ALLOCATED( pt_av ) ) THEN |
---|
| 208 | WRITE ( 14 ) 'pt_av '; WRITE ( 14 ) pt_av |
---|
| 209 | ENDIF |
---|
[75] | 210 | IF ( humidity .OR. passive_scalar ) THEN |
---|
[1] | 211 | WRITE ( 14 ) 'q '; WRITE ( 14 ) q |
---|
| 212 | IF ( ALLOCATED( q_av ) ) THEN |
---|
| 213 | WRITE ( 14 ) 'q_av '; WRITE ( 14 ) q_av |
---|
| 214 | ENDIF |
---|
[790] | 215 | IF ( cloud_physics .OR. cloud_droplets ) THEN |
---|
[1359] | 216 | WRITE ( 14 ) 'ql '; WRITE ( 14 ) ql |
---|
[1] | 217 | IF ( ALLOCATED( ql_av ) ) THEN |
---|
| 218 | WRITE ( 14 ) 'ql_av '; WRITE ( 14 ) ql_av |
---|
| 219 | ENDIF |
---|
[1359] | 220 | IF ( icloud_scheme == 0 .AND. .NOT. cloud_droplets ) THEN |
---|
| 221 | WRITE ( 14 ) 'qc '; WRITE ( 14 ) qc |
---|
[1115] | 222 | IF ( ALLOCATED( qc_av ) ) THEN |
---|
| 223 | WRITE ( 14 ) 'qc_av '; WRITE ( 14 ) qc_av |
---|
[1053] | 224 | ENDIF |
---|
[1115] | 225 | IF ( precipitation ) THEN |
---|
[1359] | 226 | WRITE ( 14 ) 'nr '; WRITE ( 14 ) nr |
---|
[1115] | 227 | IF ( ALLOCATED( nr_av ) ) THEN |
---|
| 228 | WRITE ( 14 ) 'nr_av '; WRITE ( 14 ) nr_av |
---|
| 229 | ENDIF |
---|
[1359] | 230 | WRITE ( 14 ) 'nrs '; WRITE ( 14 ) nrs |
---|
| 231 | WRITE ( 14 ) 'nrsws '; WRITE ( 14 ) nrsws |
---|
| 232 | WRITE ( 14 ) 'nrswst '; WRITE ( 14 ) nrswst |
---|
| 233 | WRITE ( 14 ) 'qr '; WRITE ( 14 ) qr |
---|
[1115] | 234 | IF ( ALLOCATED( qr_av ) ) THEN |
---|
| 235 | WRITE ( 14 ) 'qr_av '; WRITE ( 14 ) qr_av |
---|
| 236 | ENDIF |
---|
[1359] | 237 | WRITE ( 14 ) 'qrs '; WRITE ( 14 ) qrs |
---|
| 238 | WRITE ( 14 ) 'qrsws '; WRITE ( 14 ) qrsws |
---|
| 239 | WRITE ( 14 ) 'qrswst '; WRITE ( 14 ) qrswst |
---|
[1053] | 240 | ENDIF |
---|
| 241 | ENDIF |
---|
[1] | 242 | ENDIF |
---|
[1359] | 243 | WRITE ( 14 ) 'qs '; WRITE ( 14 ) qs |
---|
| 244 | WRITE ( 14 ) 'qsws '; WRITE ( 14 ) qsws |
---|
[354] | 245 | IF ( ALLOCATED( qsws_av ) ) THEN |
---|
| 246 | WRITE ( 14 ) 'qsws_av '; WRITE ( 14 ) qsws_av |
---|
| 247 | ENDIF |
---|
[19] | 248 | WRITE ( 14 ) 'qswst '; WRITE ( 14 ) qswst |
---|
[1] | 249 | ENDIF |
---|
[1551] | 250 | IF ( land_surface ) THEN |
---|
| 251 | IF ( ALLOCATED( qsws_eb_av ) ) THEN |
---|
| 252 | WRITE ( 14 ) 'qsws_eb_av '; WRITE ( 14 ) qsws_eb_av |
---|
| 253 | ENDIF |
---|
| 254 | IF ( ALLOCATED( qsws_liq_eb_av ) ) THEN |
---|
| 255 | WRITE ( 14 ) 'qsws_liq_eb_av '; WRITE ( 14 ) qsws_liq_eb_av |
---|
| 256 | ENDIF |
---|
| 257 | IF ( ALLOCATED( qsws_soil_eb_av ) ) THEN |
---|
| 258 | WRITE ( 14 ) 'qsws_soil_eb_av '; WRITE ( 14 ) qsws_soil_eb_av |
---|
| 259 | ENDIF |
---|
| 260 | IF ( ALLOCATED( qsws_veg_eb_av ) ) THEN |
---|
| 261 | WRITE ( 14 ) 'qsws_veg_eb_av '; WRITE ( 14 ) qsws_veg_eb_av |
---|
| 262 | ENDIF |
---|
| 263 | ENDIF |
---|
| 264 | IF ( radiation ) THEN |
---|
| 265 | IF ( ALLOCATED( rad_net_av ) ) THEN |
---|
| 266 | WRITE ( 14 ) 'rad_net_av '; WRITE ( 14 ) rad_net_av |
---|
| 267 | ENDIF |
---|
| 268 | IF ( ALLOCATED( rad_sw_in_av ) ) THEN |
---|
| 269 | WRITE ( 14 ) 'rad_sw_in_av '; WRITE ( 14 ) rad_sw_in_av |
---|
| 270 | ENDIF |
---|
| 271 | ENDIF |
---|
[94] | 272 | IF ( ocean ) THEN |
---|
[96] | 273 | IF ( ALLOCATED( rho_av ) ) THEN |
---|
| 274 | WRITE ( 14 ) 'rho_av '; WRITE ( 14 ) rho_av |
---|
| 275 | ENDIF |
---|
[94] | 276 | WRITE ( 14 ) 'sa '; WRITE ( 14 ) sa |
---|
[96] | 277 | IF ( ALLOCATED( sa_av ) ) THEN |
---|
| 278 | WRITE ( 14 ) 'sa_av '; WRITE ( 14 ) sa_av |
---|
| 279 | ENDIF |
---|
[95] | 280 | WRITE ( 14 ) 'saswsb '; WRITE ( 14 ) saswsb |
---|
[94] | 281 | WRITE ( 14 ) 'saswst '; WRITE ( 14 ) saswst |
---|
| 282 | ENDIF |
---|
[1551] | 283 | IF ( land_surface ) THEN |
---|
| 284 | WRITE ( 14 ) 't_soil '; WRITE ( 14 ) t_soil |
---|
| 285 | IF ( ALLOCATED( t_soil_av ) ) THEN |
---|
| 286 | WRITE ( 14 ) 't_soil_av '; WRITE ( 14 ) t_soil_av |
---|
| 287 | ENDIF |
---|
| 288 | ENDIF |
---|
[1] | 289 | IF ( ALLOCATED( ql_c_av ) ) THEN |
---|
| 290 | WRITE ( 14 ) 'ql_c_av '; WRITE ( 14 ) ql_c_av |
---|
| 291 | ENDIF |
---|
| 292 | IF ( ALLOCATED( ql_v_av ) ) THEN |
---|
| 293 | WRITE ( 14 ) 'ql_v_av '; WRITE ( 14 ) ql_v_av |
---|
| 294 | ENDIF |
---|
| 295 | IF ( ALLOCATED( ql_vp_av ) ) THEN |
---|
| 296 | WRITE ( 14 ) 'ql_vp_av '; WRITE ( 14 ) ql_vp_av |
---|
| 297 | ENDIF |
---|
| 298 | IF ( ALLOCATED( qv_av ) ) THEN |
---|
| 299 | WRITE ( 14 ) 'qv_av '; WRITE ( 14 ) qv_av |
---|
| 300 | ENDIF |
---|
| 301 | WRITE ( 14 ) 'random_iv '; WRITE ( 14 ) random_iv |
---|
| 302 | WRITE ( 14 ) random_iy |
---|
[1400] | 303 | IF ( ALLOCATED( seq_random_array ) ) THEN |
---|
| 304 | WRITE ( 14 ) 'seq_random_array '; WRITE ( 14 ) id_random_array |
---|
| 305 | WRITE ( 14 ) seq_random_array |
---|
| 306 | ENDIF |
---|
[1] | 307 | WRITE ( 14 ) 'rif '; WRITE ( 14 ) rif |
---|
[51] | 308 | IF ( topography /= 'flat' ) THEN |
---|
| 309 | WRITE ( 14 ) 'rif_wall '; WRITE ( 14 ) rif_wall |
---|
| 310 | ENDIF |
---|
[1] | 311 | IF ( ALLOCATED( s_av ) ) THEN |
---|
| 312 | WRITE ( 14 ) 's_av '; WRITE ( 14 ) s_av |
---|
| 313 | ENDIF |
---|
| 314 | WRITE ( 14 ) 'shf '; WRITE ( 14 ) shf |
---|
[354] | 315 | IF ( ALLOCATED( shf_av ) ) THEN |
---|
| 316 | WRITE ( 14 ) 'shf_av '; WRITE ( 14 ) shf_av |
---|
| 317 | ENDIF |
---|
[1551] | 318 | IF ( land_surface ) THEN |
---|
| 319 | IF ( ALLOCATED( shf_eb_av ) ) THEN |
---|
| 320 | WRITE ( 14 ) 'shf_eb_av '; WRITE ( 14 ) shf_eb_av |
---|
| 321 | ENDIF |
---|
| 322 | ENDIF |
---|
[143] | 323 | IF ( ALLOCATED( spectrum_x ) ) THEN |
---|
| 324 | WRITE ( 14 ) 'spectrum_x '; WRITE ( 14 ) spectrum_x |
---|
| 325 | WRITE ( 14 ) 'spectrum_y '; WRITE ( 14 ) spectrum_y |
---|
| 326 | ENDIF |
---|
[1] | 327 | WRITE ( 14 ) 'ts '; WRITE ( 14 ) ts |
---|
| 328 | IF ( ALLOCATED( ts_av ) ) THEN |
---|
| 329 | WRITE ( 14 ) 'ts_av '; WRITE ( 14 ) ts_av |
---|
| 330 | ENDIF |
---|
[19] | 331 | WRITE ( 14 ) 'tswst '; WRITE ( 14 ) tswst |
---|
[1] | 332 | WRITE ( 14 ) 'u '; WRITE ( 14 ) u |
---|
| 333 | IF ( ALLOCATED( u_av ) ) THEN |
---|
| 334 | WRITE ( 14 ) 'u_av '; WRITE ( 14 ) u_av |
---|
| 335 | ENDIF |
---|
[73] | 336 | IF ( ALLOCATED( u_m_l ) ) THEN |
---|
| 337 | WRITE ( 14 ) 'u_m_l '; WRITE ( 14 ) u_m_l |
---|
| 338 | ENDIF |
---|
| 339 | IF ( ALLOCATED( u_m_n ) ) THEN |
---|
| 340 | WRITE ( 14 ) 'u_m_n '; WRITE ( 14 ) u_m_n |
---|
| 341 | ENDIF |
---|
| 342 | IF ( ALLOCATED( u_m_r ) ) THEN |
---|
| 343 | WRITE ( 14 ) 'u_m_r '; WRITE ( 14 ) u_m_r |
---|
| 344 | ENDIF |
---|
| 345 | IF ( ALLOCATED( u_m_s ) ) THEN |
---|
| 346 | WRITE ( 14 ) 'u_m_s '; WRITE ( 14 ) u_m_s |
---|
| 347 | ENDIF |
---|
[1] | 348 | WRITE ( 14 ) 'us '; WRITE ( 14 ) us |
---|
| 349 | WRITE ( 14 ) 'usws '; WRITE ( 14 ) usws |
---|
[102] | 350 | WRITE ( 14 ) 'uswst '; WRITE ( 14 ) uswst |
---|
[1] | 351 | IF ( ALLOCATED( us_av ) ) THEN |
---|
| 352 | WRITE ( 14 ) 'us_av '; WRITE ( 14 ) us_av |
---|
| 353 | ENDIF |
---|
| 354 | WRITE ( 14 ) 'v '; WRITE ( 14 ) v |
---|
| 355 | IF ( ALLOCATED( v_av ) ) THEN |
---|
| 356 | WRITE ( 14 ) 'v_av '; WRITE ( 14 ) v_av |
---|
| 357 | ENDIF |
---|
[73] | 358 | IF ( ALLOCATED( v_m_l ) ) THEN |
---|
| 359 | WRITE ( 14 ) 'v_m_l '; WRITE ( 14 ) v_m_l |
---|
| 360 | ENDIF |
---|
| 361 | IF ( ALLOCATED( v_m_n ) ) THEN |
---|
| 362 | WRITE ( 14 ) 'v_m_n '; WRITE ( 14 ) v_m_n |
---|
| 363 | ENDIF |
---|
| 364 | IF ( ALLOCATED( v_m_r ) ) THEN |
---|
| 365 | WRITE ( 14 ) 'v_m_r '; WRITE ( 14 ) v_m_r |
---|
| 366 | ENDIF |
---|
| 367 | IF ( ALLOCATED( v_m_s ) ) THEN |
---|
| 368 | WRITE ( 14 ) 'v_m_s '; WRITE ( 14 ) v_m_s |
---|
| 369 | ENDIF |
---|
[75] | 370 | IF ( humidity ) THEN |
---|
[1] | 371 | WRITE ( 14 ) 'vpt '; WRITE ( 14 ) vpt |
---|
| 372 | IF ( ALLOCATED( vpt_av ) ) THEN |
---|
| 373 | WRITE ( 14 ) 'vpt_av '; WRITE ( 14 ) vpt_av |
---|
| 374 | ENDIF |
---|
| 375 | ENDIF |
---|
| 376 | WRITE ( 14 ) 'vsws '; WRITE ( 14 ) vsws |
---|
[102] | 377 | WRITE ( 14 ) 'vswst '; WRITE ( 14 ) vswst |
---|
[1] | 378 | WRITE ( 14 ) 'w '; WRITE ( 14 ) w |
---|
| 379 | IF ( ALLOCATED( w_av ) ) THEN |
---|
| 380 | WRITE ( 14 ) 'w_av '; WRITE ( 14 ) w_av |
---|
| 381 | ENDIF |
---|
[73] | 382 | IF ( ALLOCATED( w_m_l ) ) THEN |
---|
| 383 | WRITE ( 14 ) 'w_m_l '; WRITE ( 14 ) w_m_l |
---|
| 384 | ENDIF |
---|
| 385 | IF ( ALLOCATED( w_m_n ) ) THEN |
---|
| 386 | WRITE ( 14 ) 'w_m_n '; WRITE ( 14 ) w_m_n |
---|
| 387 | ENDIF |
---|
| 388 | IF ( ALLOCATED( w_m_r ) ) THEN |
---|
| 389 | WRITE ( 14 ) 'w_m_r '; WRITE ( 14 ) w_m_r |
---|
| 390 | ENDIF |
---|
| 391 | IF ( ALLOCATED( w_m_s ) ) THEN |
---|
| 392 | WRITE ( 14 ) 'w_m_s '; WRITE ( 14 ) w_m_s |
---|
| 393 | ENDIF |
---|
[1] | 394 | WRITE ( 14 ) 'z0 '; WRITE ( 14 ) z0 |
---|
[72] | 395 | IF ( ALLOCATED( z0_av ) ) THEN |
---|
| 396 | WRITE ( 14 ) 'z0_av '; WRITE ( 14 ) z0_av |
---|
| 397 | ENDIF |
---|
[978] | 398 | WRITE ( 14 ) 'z0h '; WRITE ( 14 ) z0h |
---|
| 399 | IF ( ALLOCATED( z0h_av ) ) THEN |
---|
| 400 | WRITE ( 14 ) 'z0h_av '; WRITE ( 14 ) z0h_av |
---|
| 401 | ENDIF |
---|
[1] | 402 | |
---|
| 403 | ! |
---|
| 404 | !-- Write end label. Unit 14 is closed in the main program. |
---|
| 405 | WRITE ( 14 ) '*** end *** ' |
---|
| 406 | |
---|
| 407 | END SUBROUTINE write_3d_binary |
---|
[1320] | 408 | |
---|