Changeset 1711 for trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars
- Timestamp:
- May 19, 2017, 11:19:17 AM (8 years ago)
- Location:
- trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars/lect_start_archive.F
r1422 r1711 2 2 & date,tsurf,tsoil,emis,q2, 3 3 & t,ucov,vcov,ps,co2ice,h,phisold_newgrid, 4 & q,qsurf,tauscaling, surfith,nid)4 & q,qsurf,tauscaling,totcloudfrac,surfith,nid) 5 5 c======================================================================= 6 6 c … … 49 49 REAL,INTENT(OUT) :: q2(ngrid,nlayer+1),qsurf(ngrid,nqtot) 50 50 REAL,INTENT(OUT) :: tauscaling(ngrid) ! dust conversion factor 51 REAL,INTENT(OUT) :: totcloudfrac(ngrid) ! sub grid cloud fraction 51 52 REAL,INTENT(OUT) :: phisold_newgrid(iip1,jjp1) 52 53 REAL,INTENT(OUT) :: t(iip1,jjp1,llm) … … 130 131 REAL q2S(iip1,jjp1,llm+1),qsurfS(iip1,jjp1,nqtot) 131 132 real tauscalingS(iip1,jjp1) 133 real totcloudfracS(iip1,jjp1) 132 134 133 135 real ptotal, co2icetotal … … 158 160 real, dimension(:,:,:,:), allocatable :: qold 159 161 real, dimension(:,:), allocatable :: tauscalingold 162 real, dimension(:,:), allocatable :: totcloudfracold 160 163 161 164 real tab_cntrl(100) … … 358 361 allocate(qsurfold(imold+1,jmold+1,nqtot)) 359 362 allocate(tauscalingold(imold+1,jmold+1)) 363 allocate(totcloudfracold(imold+1,jmold+1)) 360 364 361 365 allocate(var (imold+1,jmold+1,llm)) … … 683 687 684 688 c----------------------------------------------------------------------- 685 c 5.1 Lecture des champs 2D (co2ice, emis,ps,tsurf,Tg[10], q2surf, tauscaling )689 c 5.1 Lecture des champs 2D (co2ice, emis,ps,tsurf,Tg[10], q2surf, tauscaling,totcloudfrac) 686 690 c----------------------------------------------------------------------- 687 691 … … 777 781 IF (ierr .NE. NF_NOERR) THEN 778 782 PRINT*, "lect_start_archive: Failed loading <tauscaling>" 783 PRINT*, NF_STRERROR(ierr) 784 CALL abort 785 ENDIF 786 ENDIF 787 788 ierr = NF_INQ_VARID (nid, "totcloudfrac", nvarid) 789 IF (ierr .NE. NF_NOERR) THEN 790 PRINT*, "lect_start_archive: <totcloudfrac> not in file" 791 totcloudfracold(:,:) = 1 792 ELSE 793 #ifdef NC_DOUBLE 794 ierr = NF_GET_VARA_DOUBLE(nid, nvarid,start,count, 795 & totcloudfracold) 796 #else 797 ierr = NF_GET_VARA_REAL(nid, nvarid,start,count, 798 & totcloudfracold) 799 #endif 800 IF (ierr .NE. NF_NOERR) THEN 801 PRINT*, "lect_start_archive: Failed loading <totcloudfrac>" 779 802 PRINT*, NF_STRERROR(ierr) 780 803 CALL abort … … 1063 1086 & 1,rlonuold,rlatvold,rlonu,rlatv) 1064 1087 call gr_dyn_fi (1,iim+1,jjm+1,ngrid,tauscalings,tauscaling) 1088 1089 c Sub grid cloud fraction 1090 call interp_horiz (totcloudfracold,totcloudfracs,imold,jmold,iim, 1091 & jjm,1,rlonuold,rlatvold,rlonu,rlatv) 1092 call gr_dyn_fi (1,iim+1,jjm+1,ngrid,totcloudfracs,totcloudfrac) 1093 1065 1094 c write(46,*) 'emis',emis 1066 1095 c----------------------------------------------------------------------- … … 1422 1451 deallocate(qsurfold) 1423 1452 deallocate(tauscalingold) 1453 deallocate(totcloudfracold) 1424 1454 deallocate(var,varp1) 1425 1455 -
trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars/newstart.F
r1543 r1711 170 170 real,allocatable :: coefvmr(:) ! Correction coefficient when changing composition 171 171 integer :: iloc(1), iqmax 172 ! sub-grid cloud fraction 173 real :: totcloudfrac(ngridmx) 172 174 173 175 c sortie visu pour les champs dynamiques … … 402 404 & date,tsurf,tsoil,emis,q2, 403 405 & t,ucov,vcov,ps,co2ice,teta,phisold_newgrid,q,qsurf, 404 & tauscaling, surfith,nid)406 & tauscaling,totcloudfrac,surfith,nid) 405 407 write(*,*) "OK, read start_archive file" 406 408 ! copy soil thermal inertia … … 423 425 CALL phyetat0 (fichnom,tab0,Lmodif,nsoilmx,ngridmx,llm,nqtot, 424 426 . day_ini,time, 425 . tsurf,tsoil,emis,q2,qsurf,co2ice,tauscaling )427 . tsurf,tsoil,emis,q2,qsurf,co2ice,tauscaling,totcloudfrac) 426 428 427 429 ! copy albedo and soil thermal inertia … … 1640 1642 call physdem1("restartfi.nc",nsoilmx,ngridmx,llm,nqtot, 1641 1643 . dtphys,hour_ini, 1642 . tsurf,tsoil,co2ice,emis,q2,qsurf,tauscaling) 1644 . tsurf,tsoil,co2ice,emis,q2,qsurf,tauscaling, 1645 . totcloudfrac) 1643 1646 1644 1647 c======================================================================= -
trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars/start2archive.F
r1593 r1711 64 64 REAL co2ice(ngridmx) ! CO2 ice layer 65 65 REAL tauscaling(ngridmx) ! dust conversion factor 66 REAL totcloudfrac(ngridmx) ! sub-grid cloud fraction 66 67 REAL q2(ngridmx,llm+1) 67 68 REAL emis(ngridmx) … … 79 80 REAL co2iceS(ip1jmp1) 80 81 REAL tauscalingS(ip1jmp1) 82 REAL totcloudfracS(ip1jmp1) 81 83 REAL q2S(ip1jmp1,llm+1) 82 84 REAL,ALLOCATABLE :: qsurfS(:,:) … … 156 158 CALL phyetat0 (fichnom,0,Lmodif,nsoilmx,ngridmx,llm,nqtot, 157 159 & day_ini_fi,timefi,tsurf,tsoil,emis,q2,qsurf,co2ice, 158 & tauscaling )160 & tauscaling,totcloudfrac) 159 161 160 162 ierr = NF_OPEN (fichnom, NF_NOWRITE,nid1) … … 244 246 c qsurf --> qsurfS 245 247 c tauscaling --> tauscalingS 248 c totcloudfrac --> totcloudfracS 246 249 c 247 250 c----------------------------------------------------------------------- … … 256 259 call gr_fi_dyn(nqtot,ngridmx,iip1,jjp1,qsurf,qsurfS) 257 260 call gr_fi_dyn(1,ngridmx,iip1,jjp1,tauscaling,tauscalingS) 261 call gr_fi_dyn(1,ngridmx,iip1,jjp1,totcloudfrac,totcloudfracS) 258 262 259 263 c======================================================================= … … 346 350 call write_archive(nid,ntime,'tauscaling', 347 351 & 'dust conversion factor',' ',2,tauscalingS) 352 call write_archive(nid,ntime,'totcloudfrac', 353 & 'sub grid cloud fraction',' ',2,totcloudfracS) 348 354 call write_archive(nid,ntime,'emis','grd emis',' ',2,emisS) 349 355 call write_archive(nid,ntime,'ps','Psurf','Pa',2,ps)
Note: See TracChangeset
for help on using the changeset viewer.