Changeset 224 for trunk/LMDZ.MARS/libf/phymars/phyetat0.F
- Timestamp:
- Jul 15, 2011, 9:06:27 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/phyetat0.F
r38 r224 464 464 xmax = MAXVAL(emis) 465 465 PRINT*,'Surface emissivity <emis>:', xmin, xmax 466 467 ! 468 ! surface roughness length (NB: z0 is a common in surfdat.h) 469 ! 470 ierr=nf90_inq_varid(nid,"z0",nvarid) 471 if (ierr.ne.nf90_noerr) then 472 write(*,*) 'phyetat0: did not find z0 field!' 473 write(*,*) 'will use constant value of z0_default instead' 474 z0(:)=z0_default 475 else 476 ierr=nf90_get_var(nid,nvarid,z0) 477 if (ierr.ne.nf90_noerr) then 478 write(*,*) 'phyetat0: Failed loading <z0>' 479 write(*,*)trim(nf90_strerror(ierr)) 480 call abort 481 endif 482 xmin=1.0E+20 483 xmax=-1.0E+20 484 xmin=minval(z0) 485 xmax=maxval(z0) 486 write(*,*)'Surface roughness <z0>:',xmin,xmax 487 endif 488 489 466 490 c 467 491 c pbl wind variance
Note: See TracChangeset
for help on using the changeset viewer.