Changeset 1691 for palm/trunk/SOURCE/init_3d_model.f90
- Timestamp:
- Oct 26, 2015 4:17:44 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/init_3d_model.f90
r1683 r1691 14 14 ! PALM. If not, see <http://www.gnu.org/licenses/>. 15 15 ! 16 ! Copyright 1997-201 4Leibniz Universitaet Hannover16 ! Copyright 1997-2015 Leibniz Universitaet Hannover 17 17 !--------------------------------------------------------------------------------! 18 18 ! 19 19 ! Current revisions: 20 20 ! ------------------ 21 ! 21 ! Call to init_surface_layer added. rif is replaced by ol and zeta. 22 22 ! 23 23 ! Former revisions: … … 266 266 sums_l_l, sums_up_fraction_l, sums_wsts_bc_l, ts_value, & 267 267 var_d, weight_pres, weight_substep 268 268 269 USE surface_layer_fluxes_mod, & 270 ONLY: init_surface_layer_fluxes 271 269 272 USE transpose_indices 270 273 … … 313 316 ALLOCATE( ptdf_x(nxlg:nxrg), ptdf_y(nysg:nyng) ) 314 317 315 ALLOCATE( rif(nysg:nyng,nxlg:nxrg), shf(nysg:nyng,nxlg:nxrg),&318 ALLOCATE( ol(nysg:nyng,nxlg:nxrg), shf(nysg:nyng,nxlg:nxrg), & 316 319 ts(nysg:nyng,nxlg:nxrg), tswst(nysg:nyng,nxlg:nxrg), & 317 320 us(nysg:nyng,nxlg:nxrg), usws(nysg:nyng,nxlg:nxrg), & … … 714 717 hom(:,1,25,:) = SPREAD( l1d, 2, statistic_regions+1 ) 715 718 716 IF ( prandtl_layer ) THEN717 rif =rif1d(nzb+1)719 IF ( constant_flux_layer ) THEN 720 ol = ( zu(nzb+1) - zw(nzb) ) / rif1d(nzb+1) 718 721 ts = 0.0_wp ! could actually be computed more accurately in the 719 722 ! 1D model. Update when opportunity arises. … … 723 726 ELSE 724 727 ts = 0.0_wp ! must be set, because used in 725 rif = 0.0_wp! flowste728 ol = ( zu(nzb+1) - zw(nzb) ) / zeta_min ! flowste 726 729 us = 0.0_wp 727 730 usws = 0.0_wp … … 731 734 ELSE 732 735 e = 0.0_wp ! must be set, because used in 733 rif = 0.0_wp! flowste736 ol = ( zu(nzb+1) - zw(nzb) ) / zeta_min ! flowste 734 737 ts = 0.0_wp 735 738 us = 0.0_wp … … 886 889 e = 0.0_wp 887 890 ENDIF 888 rif = 0.0_wp891 ol = ( zu(nzb+1) - zw(nzb) ) / zeta_min 889 892 ts = 0.0_wp 890 893 us = 0.0_wp … … 1095 1098 ! 1096 1099 !-- Initialize Prandtl layer quantities 1097 IF ( prandtl_layer ) THEN1100 IF ( constant_flux_layer ) THEN 1098 1101 1099 1102 z0 = roughness_length … … 1103 1106 ! 1104 1107 !-- Surface temperature is prescribed. Here the heat flux cannot be 1105 !-- simply estimated, because therefore rif, u* and theta* would have1108 !-- simply estimated, because therefore ol, u* and theta* would have 1106 1109 !-- to be computed by iteration. This is why the heat flux is assumed 1107 1110 !-- to be zero before the first time step. It approaches its correct … … 1624 1627 CALL location_message( 'initializing land surface model', .FALSE. ) 1625 1628 CALL init_lsm 1629 CALL location_message( 'finished', .TRUE. ) 1630 ENDIF 1631 1632 ! 1633 !-- Initialize surface layer (done after LSM as roughness length are required 1634 !-- for initialization 1635 IF ( constant_flux_layer ) THEN 1636 CALL location_message( 'initializing surface layer', .FALSE. ) 1637 CALL init_surface_layer_fluxes 1626 1638 CALL location_message( 'finished', .TRUE. ) 1627 1639 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.