- Timestamp:
- 2011-06-17T14:02:17+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ORCHIDEE_EXT/ORCHIDEE/src_stomate/stomate_prescribe.f90
r64 r257 19 19 USE pft_parameters 20 20 USE constantes 21 22 21 23 22 IMPLICIT NONE … … 89 88 ! only when the DGVM is not activated or agricultural PFT. 90 89 91 IF ( ( .NOT. control%ok_dgvm ) .OR. ( .NOT. natural(j) ) ) THEN90 IF ( ( .NOT. control%ok_dgvm .AND. lpj_gap_const_mort ) .OR. ( .NOT. natural(j) ) ) THEN 92 91 93 92 ! … … 95 94 ! 96 95 97 cn_ind(:,j) = 0.096 cn_ind(:,j) = zero 98 97 99 98 IF ( tree(j) ) THEN … … 103 102 ! 104 103 105 dia(:) = 0.0104 dia(:) = zero 106 105 107 106 DO i = 1, npts 108 107 109 IF ( veget_max(i,j) .GT. 0.0) THEN108 IF ( veget_max(i,j) .GT. zero ) THEN 110 109 111 110 ! 1.1.1 calculate total wood mass … … 128 127 129 128 dia(i) = ( woodmass_ind(i) / ( pipe_density * pi/4. * pipe_tune2 ) ) ** & 130 ( 1./ ( 2. + pipe_tune3 ) )129 ( un / ( 2. + pipe_tune3 ) ) 131 130 132 131 ! 1.1.5 crown area, provisional … … 149 148 150 149 dia(i) = ( woodmass_ind(i) / ( pipe_density * pi/4. * pipe_tune2 ) ) ** & 151 ( 1./ ( 2. + pipe_tune3 ) )150 ( un / ( 2. + pipe_tune3 ) ) 152 151 153 152 ! final crown area … … 176 175 ! 177 176 178 WHERE ( veget_max(:,j) .GT. 0.0)179 cn_ind(:,j) = 1.0177 WHERE ( veget_max(:,j) .GT. zero ) 178 cn_ind(:,j) = un 180 179 ENDWHERE 181 180 … … 186 185 ! 187 186 188 WHERE ( veget_max(:,j) .GT. 0.0)187 WHERE ( veget_max(:,j) .GT. zero ) 189 188 190 189 ind(:,j) = veget_max(:,j) / cn_ind(:,j) … … 192 191 ELSEWHERE 193 192 194 ind(:,j) = 0.0193 ind(:,j) = zero 195 194 196 195 ENDWHERE … … 247 246 IF ( pheno_model(j) .NE. 'none' ) THEN 248 247 249 biomass(i,j,ileaf) = 0.0250 leaf_frac(i,j,1) = 0.0248 biomass(i,j,ileaf) = zero 249 leaf_frac(i,j,1) = zero 251 250 252 251 ENDIF … … 265 264 266 265 ! set leaf age classes 267 leaf_frac(i,j,:) = 0.0268 leaf_frac(i,j,1) = 1.0266 leaf_frac(i,j,:) = zero 267 leaf_frac(i,j,1) = un 269 268 270 269 ! set time since last beginning of growing season … … 279 278 IF ( veget_max(i,j) .GT. min_stomate ) THEN 280 279 PFTpresent(i,j) = .TRUE. 281 everywhere(i,j) = 1.280 everywhere(i,j) = un 282 281 ENDIF 283 282
Note: See TracChangeset
for help on using the changeset viewer.