Changeset 1283 for trunk/LMDZ.GENERIC/libf/phystd/radii_mod.F90
- Timestamp:
- Jun 5, 2014, 12:34:37 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/radii_mod.F90
r1026 r1283 38 38 Implicit none 39 39 40 #include "callkeys.h"41 #include "dimensions.h"42 #include "dimphys.h"40 include "callkeys.h" 41 include "dimensions.h" 42 include "dimphys.h" 43 43 44 44 integer,intent(in) :: ngrid … … 140 140 Implicit none 141 141 142 #include "callkeys.h"143 #include "dimensions.h"144 #include "dimphys.h"145 #include "comcstfi.h"142 include "callkeys.h" 143 include "dimensions.h" 144 include "dimphys.h" 145 include "comcstfi.h" 146 146 147 147 integer,intent(in) :: ngrid … … 200 200 Implicit none 201 201 202 #include "callkeys.h"203 #include "dimensions.h"204 #include "dimphys.h"205 #include "comcstfi.h"202 include "callkeys.h" 203 include "dimensions.h" 204 include "dimphys.h" 205 include "comcstfi.h" 206 206 207 207 integer,intent(in) :: ngrid 208 208 209 209 real, intent(in) :: pql(ngrid,nlayermx) !condensed water mixing ratios (kg/kg) 210 real, intent(out) :: reffliq(ngrid,nlayermx),reffice(ngrid,nlayermx) !liquid and ice water particle radii ( K)210 real, intent(out) :: reffliq(ngrid,nlayermx),reffice(ngrid,nlayermx) !liquid and ice water particle radii (m) 211 211 212 212 real,external :: CBRT 213 213 integer :: i,k 214 214 215 215 if (radfixed) then … … 217 217 reffice(1:ngrid,1:nlayermx)= rad_h2o_ice 218 218 else 219 reffliq(1:ngrid,1:nlayermx) = CBRT( 3*pql(1:ngrid,1:nlayermx)/(4*Nmix_h2o*pi*rhowater) ) 220 reffliq(1:ngrid,1:nlayermx) = min(max(reffliq(1:ngrid,1:nlayermx),1.e-6),1000.e-6) 221 reffice(1:ngrid,1:nlayermx) = CBRT( 3*pql(1:ngrid,1:nlayermx)/(4*Nmix_h2o_ice*pi*rhowaterice) ) 222 reffice(1:ngrid,1:nlayermx) = min(max(reffice(1:ngrid,1:nlayermx),1.e-6),1000.e-6) 223 end if 219 do k=1,nlayermx 220 do i=1,ngrid 221 reffliq(i,k) = CBRT(3*pql(i,k)/(4*Nmix_h2o*pi*rhowater)) 222 reffliq(i,k) = min(max(reffliq(i,k),1.e-6),1000.e-6) 223 224 reffice(i,k) = CBRT(3*pql(i,k)/(4*Nmix_h2o_ice*pi*rhowaterice)) 225 reffice(i,k) = min(max(reffice(i,k),1.e-6),1000.e-6) 226 enddo 227 enddo 228 endif 224 229 225 230 end subroutine h2o_cloudrad … … 243 248 Implicit none 244 249 245 #include "callkeys.h"246 #include "dimensions.h"247 #include "dimphys.h"248 #include "comcstfi.h"250 include "callkeys.h" 251 include "dimensions.h" 252 include "dimphys.h" 253 include "comcstfi.h" 249 254 250 255 integer,intent(in) :: ngrid,nq … … 289 294 Implicit none 290 295 291 #include "callkeys.h"292 #include "dimensions.h"293 #include "dimphys.h"296 include "callkeys.h" 297 include "dimensions.h" 298 include "dimphys.h" 294 299 295 300 integer,intent(in) :: ngrid … … 317 322 Implicit none 318 323 319 #include "callkeys.h"320 #include "dimensions.h"321 #include "dimphys.h"324 include "callkeys.h" 325 include "dimensions.h" 326 include "dimphys.h" 322 327 323 328 integer,intent(in) :: ngrid … … 346 351 Implicit none 347 352 348 #include "callkeys.h"349 #include "dimensions.h"350 #include "dimphys.h"353 include "callkeys.h" 354 include "dimensions.h" 355 include "dimphys.h" 351 356 352 357 integer,intent(in) :: ngrid
Note: See TracChangeset
for help on using the changeset viewer.