Changeset 1551 for palm/trunk/SOURCE/header.f90
- Timestamp:
- Mar 3, 2015 2:18:16 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/header.f90
r1497 r1551 20 20 ! Current revisions: 21 21 ! ----------------- 22 ! 22 ! Added informal output for land surface model and radiation model. Removed typo. 23 23 ! 24 24 ! Former revisions: … … 170 170 ! Description: 171 171 ! ------------ 172 ! Writing a header with all important information sabout the actual run.172 ! Writing a header with all important information about the actual run. 173 173 ! This subroutine is called three times, two times at the beginning 174 174 ! (writing information on files RUN_CONTROL and HEADER) and one time at the … … 200 200 201 201 USE kinds 202 202 203 USE land_surface_model_mod, & 204 ONLY: conserve_water_content, dewfall, land_surface, nzb_soil, & 205 nzt_soil, root_fraction, soil_moisture, soil_temperature, & 206 soil_type, soil_type_name, veg_type, veg_type_name, zs 207 203 208 USE model_1d, & 204 209 ONLY: damp_level_ind_1d, dt_pr_1d, dt_run_control_1d, end_time_1d … … 225 230 lai_beta, leaf_scalar_exch_coeff, leaf_surface_conc, pch_index, & 226 231 plant_canopy 232 233 USE radiation_model_mod, & 234 ONLY: albedo, day_init, dt_radiation, lambda, net_radiation, & 235 radiation, radiation_scheme, time_utc_init 227 236 228 237 USE spectrum, & … … 263 272 CHARACTER (LEN=86) :: gradients !: 264 273 CHARACTER (LEN=86) :: leaf_area_density !: 274 CHARACTER (LEN=86) :: roots !: 265 275 CHARACTER (LEN=86) :: slices !: 266 276 CHARACTER (LEN=86) :: temperatures !: … … 311 321 ! 312 322 !-- At the end of the run, output file (HEADER) will be rewritten with 313 !-- new information s323 !-- new information 314 324 IF ( io == 19 .AND. simulated_time_at_begin /= simulated_time ) REWIND( 19 ) 315 325 … … 495 505 496 506 ! 497 !-- Runtime and timestep information s507 !-- Runtime and timestep information 498 508 WRITE ( io, 200 ) 499 509 IF ( .NOT. dt_fixed ) THEN … … 850 860 851 861 862 IF ( land_surface ) THEN 863 864 temperatures = '' 865 gradients = '' ! use for humidity here 866 coordinates = '' ! use for height 867 roots = '' ! use for root fraction 868 slices = '' ! use for index 869 870 i = 1 871 DO i = nzb_soil, nzt_soil 872 WRITE (coor_chr,'(F10.2,7X)') soil_temperature(i) 873 temperatures = TRIM( temperatures ) // ' ' // TRIM( coor_chr ) 874 875 WRITE (coor_chr,'(F10.2,7X)') soil_moisture(i) 876 gradients = TRIM( gradients ) // ' ' // TRIM( coor_chr ) 877 878 WRITE (coor_chr,'(F10.2,7X)') - zs(i) 879 coordinates = TRIM( coordinates ) // ' ' // TRIM( coor_chr ) 880 881 WRITE (coor_chr,'(F10.2,7X)') root_fraction(i) 882 roots = TRIM( roots ) // ' ' // TRIM( coor_chr ) 883 884 WRITE (coor_chr,'(I10,7X)') i 885 slices = TRIM( slices ) // ' ' // TRIM( coor_chr ) 886 887 888 ENDDO 889 890 ! 891 !-- Write land surface model header 892 WRITE( io, 419 ) 893 IF ( conserve_water_content ) THEN 894 WRITE( io, 440 ) 895 ELSE 896 WRITE( io, 441 ) 897 ENDIF 898 899 IF ( dewfall ) THEN 900 WRITE( io, 442 ) 901 ELSE 902 WRITE( io, 443 ) 903 ENDIF 904 905 WRITE( io, 438 ) veg_type_name(veg_type), soil_type_name(soil_type) 906 WRITE( io, 439 ) TRIM( coordinates ), TRIM( temperatures ), & 907 TRIM( gradients ), TRIM( roots ), TRIM( slices ) 908 909 910 ENDIF 911 912 IF ( radiation ) THEN 913 ! 914 !-- Write land surface model header 915 WRITE( io, 444 ) 916 917 IF ( radiation_scheme == "constant" ) THEN 918 WRITE( io, 445 ) net_radiation 919 ELSEIF ( radiation_scheme == "clear-sky" ) THEN 920 WRITE( io, 446 ) 921 ELSE 922 WRITE( io, 447 ) radiation_scheme 923 ENDIF 924 925 WRITE( io, 448 ) albedo 926 WRITE( io, 449 ) dt_radiation 927 928 ENDIF 929 930 852 931 ! 853 932 !-- Boundary conditions … … 877 956 878 957 IF ( ibc_pt_b == 0 ) THEN 879 runten = TRIM( runten ) // ' pt(0) = pt_surface' 958 IF ( land_surface ) THEN 959 runten = TRIM( runten ) // ' pt(0) = from soil model' 960 ELSE 961 runten = TRIM( runten ) // ' pt(0) = pt_surface' 962 ENDIF 880 963 ELSEIF ( ibc_pt_b == 1 ) THEN 881 runten = TRIM( runten ) // ' pt(0) = pt(1)'964 runten = TRIM( runten ) // ' pt(0) = pt(1)' 882 965 ELSEIF ( ibc_pt_b == 2 ) THEN 883 runten = TRIM( runten ) // ' pt(0) = from coupled model'966 runten = TRIM( runten ) // ' pt(0) = from coupled model' 884 967 ENDIF 885 968 IF ( ibc_pt_t == 0 ) THEN … … 918 1001 IF ( humidity ) THEN 919 1002 IF ( ibc_q_b == 0 ) THEN 920 runten = 'q(0) = q_surface' 1003 IF ( land_surface ) THEN 1004 runten = 'q(0) = from soil model' 1005 ELSE 1006 runten = 'q(0) = q_surface' 1007 ENDIF 1008 921 1009 ELSE 922 1010 runten = 'q(0) = q(1)' … … 1225 1313 coordinates = '/' 1226 1314 ! 1227 !-- Building strings with index and coordinate information sof the1315 !-- Building strings with index and coordinate information of the 1228 1316 !-- slices 1229 1317 DO WHILE ( section(i,1) /= -9999 ) … … 1271 1359 coordinates = '/' 1272 1360 ! 1273 !-- Building strings with index and coordinate information sof the1361 !-- Building strings with index and coordinate information of the 1274 1362 !-- slices 1275 1363 DO WHILE ( section(i,2) /= -9999 ) … … 1313 1401 coordinates = '/' 1314 1402 ! 1315 !-- Building strings with index and coordinate information sof the1403 !-- Building strings with index and coordinate information of the 1316 1404 !-- slices 1317 1405 DO WHILE ( section(i,3) /= -9999 ) … … 1571 1659 ! 1572 1660 !-- Geostrophic parameters 1573 WRITE ( io, 410 ) omega, phi, f, fs 1661 IF ( radiation .AND. radiation_scheme /= 'constant' ) THEN 1662 WRITE ( io, 417 ) lambda 1663 ENDIF 1664 WRITE ( io, 410 ) phi, omega, f, fs 1574 1665 1575 1666 ! 1576 1667 !-- Other quantities 1577 1668 WRITE ( io, 411 ) g 1669 IF ( radiation .AND. radiation_scheme /= 'constant' ) THEN 1670 WRITE ( io, 418 ) day_init, time_utc_init 1671 ENDIF 1672 1578 1673 WRITE ( io, 412 ) TRIM( reference_state ) 1579 1674 IF ( use_single_reference_value ) THEN … … 1732 1827 1733 1828 ! 1734 !-- User-defined information s1829 !-- User-defined information 1735 1830 CALL user_header( io ) 1736 1831 … … 1867 1962 260 FORMAT (/' The model has a slope in x-direction. Inclination angle: ',F6.2,& 1868 1963 ' degrees') 1869 270 FORMAT (//' Topography information s:'/ &1870 ' ---------------------- -'// &1964 270 FORMAT (//' Topography information:'/ & 1965 ' ----------------------'// & 1871 1966 1X,'Topography: ',A) 1872 1967 271 FORMAT ( ' Building size (x/y/z) in m: ',F5.1,' / ',F5.1,' / ',F5.1/ & … … 1905 2000 ' -------------------'// & 1906 2001 ' p uv ', & 1907 ' pt'// &2002 ' pt'// & 1908 2003 ' B. bound.: ',A/ & 1909 2004 ' T. bound.: ',A) … … 2047 2142 400 FORMAT (//' Physical quantities:'/ & 2048 2143 ' -------------------'/) 2049 410 FORMAT (' Angular velocity : omega = ',E9.3,' rad/s'/&2050 ' Geograph. latitude : phi = ',F4.1,' degr'/&2051 ' Coriolis parameter : f = ',F9.6,' 1/s'/ &2052 ' f* = ',F9.6,' 1/s')2053 411 FORMAT (/' Gravity : g = ',F4.1,' m/s**2')2144 410 FORMAT (' Geograph. latitude : phi = ',F4.1,' degr'/ & 2145 ' Angular velocity : omega = ',E9.3,' rad/s'/ & 2146 ' Coriolis parameter : f = ',F9.6,' 1/s'/ & 2147 ' f* = ',F9.6,' 1/s') 2148 411 FORMAT (/' Gravity : g = ',F4.1,' m/s**2') 2054 2149 412 FORMAT (/' Reference state used in buoyancy terms: ',A) 2055 2150 413 FORMAT (' Reference density in buoyancy terms: ',F8.3,' kg/m**3') 2056 2151 414 FORMAT (' Reference temperature in buoyancy terms: ',F8.4,' K') 2057 415 FORMAT (/' Cloud physics parameters:'/ & 2058 ' ------------------------'/) 2059 416 FORMAT (' Surface pressure : p_0 = ',F7.2,' hPa'/ & 2060 ' Gas constant : R = ',F5.1,' J/(kg K)'/ & 2061 ' Density of air : rho_0 = ',F5.3,' kg/m**3'/ & 2062 ' Specific heat cap. : c_p = ',F6.1,' J/(kg K)'/ & 2063 ' Vapourization heat : L_v = ',E8.2,' J/kg') 2152 415 FORMAT (/' Cloud physics parameters:'/ & 2153 ' ------------------------'/) 2154 416 FORMAT (' Surface pressure : p_0 = ',F7.2,' hPa'/ & 2155 ' Gas constant : R = ',F5.1,' J/(kg K)'/ & 2156 ' Density of air : rho_0 = ',F5.3,' kg/m**3'/ & 2157 ' Specific heat cap. : c_p = ',F6.1,' J/(kg K)'/ & 2158 ' Vapourization heat : L_v = ',E8.2,' J/kg') 2159 417 FORMAT (' Geograph. longitude : lambda = ',F4.1,' degr') 2160 418 FORMAT (/' Day of the year at model start : day_init = ',I3 & 2161 /' UTC time at model start : time_utc_init = ',F7.1' s') 2162 419 FORMAT (//' Land surface model information:'/ & 2163 ' ------------------------------'/) 2064 2164 420 FORMAT (/' Characteristic levels of the initial temperature profile:'// & 2065 2165 ' Height: ',A,' m'/ & … … 2120 2220 '[0,1000] cm**2/s**3') 2121 2221 437 FORMAT (' Droplet collision is switched off') 2222 438 FORMAT (' --> Land surface type : ',A,/ & 2223 ' --> Soil porosity type : ',A) 2224 439 FORMAT (/' Initial soil temperature and moisture profile:'// & 2225 ' Height: ',A,' m'/ & 2226 ' Temperature: ',A,' K'/ & 2227 ' Moisture: ',A,' m**3/m**3'/ & 2228 ' Root fraction: ',A,' '/ & 2229 ' Gridpoint: ',A) 2230 440 FORMAT (/' --> Dewfall is allowed (default)') 2231 441 FORMAT (' --> Dewfall is inhibited') 2232 442 FORMAT (' --> Soil bottom is closed (water content is conserved, default)') 2233 443 FORMAT (' --> Soil bottom is open (water content is not conserved)') 2234 444 FORMAT (//' Radiation model information:'/ & 2235 ' ----------------------------'/) 2236 445 FORMAT (' --> Using constant net radiation: net_radiation = ', F6.2, ' W/m**2') 2237 446 FORMAT (' --> Simple radiation scheme for clear sky is used (no clouds,', & 2238 ' default)') 2239 447 FORMAT (' --> Radiation scheme:', A) 2240 448 FORMAT (/' Surface albedo: albedo = ', F5.3) 2241 449 FORMAT (' Timestep: dt_radiation = ', F5.2, ' s') 2242 2122 2243 450 FORMAT (//' LES / Turbulence quantities:'/ & 2123 2244 ' ---------------------------'/) … … 2200 2321 508 FORMAT (' Ventilation effects on evaporation of rain drops') 2201 2322 509 FORMAT (' Slope limiter used for sedimentation process') 2202 510 FORMAT (' 2203 511 FORMAT (' 2323 510 FORMAT (' Droplet density : N_c = ',F6.1,' 1/cm**3') 2324 511 FORMAT (' Sedimentation Courant number: '/& 2204 2325 ' C_s = ',F3.1,' ') 2205 2326 512 FORMAT (/' Date: ',A8,6X,'Run: ',A20/ &
Note: See TracChangeset
for help on using the changeset viewer.