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