Changeset 1345 for trunk/LMDZ.COMMON/libf/dyn3d_common/relaxetat0.F
- Timestamp:
- Sep 8, 2014, 10:09:19 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/dyn3d_common/relaxetat0.F
r1300 r1345 22 22 ! VARIABLES 23 23 REAL ucov(iip1, jjp1,llm) 24 REAL press(llm) 24 25 INTEGER ierr, nid, nvarid 25 26 INTEGER i,j,l,ij … … 63 64 CALL getin('facwind',facwind) 64 65 66 !! CALCULATE ATTENUATION FACTOR WITH ALTITUDE 67 ierr = NF_INQ_VARID (nid, "presnivs", nvarid) 68 IF (ierr .NE. NF_NOERR) THEN 69 write(lunout,*)"dynetat0: Le champ <presnivs> est absent" 70 CALL abort 71 ENDIF 72 ierr = nf90_get_var(nid, nvarid, press) 73 IF (ierr .NE. NF_NOERR) THEN 74 write(lunout,*)"dynetat0: Lecture echouee pour <press>" 75 CALL abort 76 ENDIF 77 phalf = 1.e5 !! at this pressure, attenua is 0.5 78 CALL getin('phalf',phalf) 79 !! attenua goes from 1 at lowermost levels to 0 at uppermost levels 80 IF (.NOT.ALLOCATED(attenua)) ALLOCATE(attenua(llm)) 81 attenua = 0.5*(1.+tanh(log10(press/phalf))) 82 65 83 !! END 66 84 ierr = NF_CLOSE(nid)
Note: See TracChangeset
for help on using the changeset viewer.