Ignore:
Timestamp:
Mar 12, 2014, 4:30:18 PM (11 years ago)
Author:
tnavarro
Message:

added tauscaling in startfi + moved start_archive routines from dyn3d to phymars

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/lect_start_archive.F

    r1207 r1208  
    22     &     date,tsurf,tsoil,emis,q2,
    33     &     t,ucov,vcov,ps,co2ice,h,phisold_newgrid,
    4      &     q,qsurf,surfith,nid)
     4     &     q,qsurf,tauscaling,surfith,nid)
    55c=======================================================================
    66c
     
    109109      REAL emis(ngrid)
    110110      REAL q2(ngrid,nlayer+1),qsurf(ngrid,nqtot)
     111      REAL tauscaling(ngrid) ! dust conversion factor
    111112c     REAL phisfi(ngrid)
    112113
     
    136137      real co2iceS(iip1,jjp1),emisS(iip1,jjp1)
    137138      REAL q2S(iip1,jjp1,llm+1),qsurfS(iip1,jjp1,nqtot)
     139      real tauscalingS(iip1,jjp1)
    138140
    139141      real ptotal, co2icetotal
     
    163165      real, dimension(:,:), allocatable :: emisold
    164166      real, dimension(:,:,:,:), allocatable :: qold
     167      real, dimension(:,:), allocatable :: tauscalingold
    165168
    166169      real tab_cntrl(100)
     
    337340      allocate(mlayerold(nsoilold))
    338341      allocate(qsurfold(imold+1,jmold+1,nqtot))
     342      allocate(tauscalingold(imold+1,jmold+1))
    339343
    340344      allocate(var (imold+1,jmold+1,llm))
     
    662666
    663667c-----------------------------------------------------------------------
    664 c 5.1 Lecture des champs 2D (co2ice, emis,ps,tsurf,Tg[10], q2surf)
     668c 5.1 Lecture des champs 2D (co2ice, emis,ps,tsurf,Tg[10], q2surf, tauscaling)
    665669c-----------------------------------------------------------------------
    666670 
     
    742746         PRINT*, "lect_start_archive: Failed loading <q2surf>"
    743747         CALL abort
     748      ENDIF
     749c
     750      ierr = NF_INQ_VARID (nid, "tauscaling", nvarid)
     751      IF (ierr .NE. NF_NOERR) THEN
     752         PRINT*, "lect_start_archive: <tauscaling> not in file"
     753         tauscalingold(:,:) = -1
     754      ELSE
     755#ifdef NC_DOUBLE
     756        ierr = NF_GET_VARA_DOUBLE(nid, nvarid,start,count,tauscalingold)
     757#else
     758        ierr = NF_GET_VARA_REAL(nid, nvarid,start,count,tauscalingold)
     759#endif
     760        IF (ierr .NE. NF_NOERR) THEN
     761           PRINT*, "lect_start_archive: Failed loading <tauscaling>"
     762           PRINT*, NF_STRERROR(ierr)
     763           CALL abort
     764        ENDIF
    744765      ENDIF
    745766c
     
    10191040      call interp_horiz (emisold,emiss,imold,jmold,iim,jjm,1,
    10201041     &                   rlonuold,rlatvold,rlonu,rlatv)
    1021       call gr_dyn_fi (1,iim+1,jjm+1,ngrid,emiss,emis)
     1042c Dust conversion factor
     1043      call interp_horiz (tauscalingold,tauscalings,imold,jmold,iim,jjm,
     1044     &                   1,rlonuold,rlatvold,rlonu,rlatv)
     1045      call gr_dyn_fi (1,iim+1,jjm+1,ngrid,tauscalings,tauscaling)
    10221046c     write(46,*) 'emis',emis
    10231047c-----------------------------------------------------------------------
     
    13781402      deallocate(mlayerold)
    13791403      deallocate(qsurfold)
     1404      deallocate(tauscalingold)
    13801405      deallocate(var,varp1)
    13811406
Note: See TracChangeset for help on using the changeset viewer.