Changeset 2466 for trunk


Ignore:
Timestamp:
Feb 24, 2021, 4:16:08 PM (4 years ago)
Author:
mvals
Message:

Mars GCM:
Correction in lect_start_archive.F:

  • adds the variable "watercap" to insure its transmission in the case newstart.F uses start_archive.nc to create the start files.

MV

Location:
trunk/LMDZ.MARS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/README

    r2461 r2466  
    32913291- Added handling of hdo in molecular diffusion (moldiff_red).
    32923292
     3293== 24/02/2021 == MV
     3294Correction in lect_start_archive.F:
     3295- adds the variable "watercap" to insure its transmission in the case newstart.F 
     3296  uses start_archive.nc to create the start files.
     3297
  • trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars/lect_start_archive.F

    r1711 r2466  
    22     &     date,tsurf,tsoil,emis,q2,
    33     &     t,ucov,vcov,ps,co2ice,h,phisold_newgrid,
    4      &     q,qsurf,tauscaling,totcloudfrac,surfith,nid)
     4     &     q,qsurf,tauscaling,totcloudfrac,surfith,nid,
     5     &     watercap)
    56c=======================================================================
    67c
     
    5051      REAL,INTENT(OUT) :: tauscaling(ngrid) ! dust conversion factor
    5152      REAL,INTENT(OUT) :: totcloudfrac(ngrid) ! sub grid cloud fraction
     53      REAL,INTENT(OUT) :: watercap(ngrid) ! infinite polar cap
    5254      REAL,INTENT(OUT) :: phisold_newgrid(iip1,jjp1)
    5355      REAL,INTENT(OUT) :: t(iip1,jjp1,llm)
     
    132134      real tauscalingS(iip1,jjp1)
    133135      real totcloudfracS(iip1,jjp1)
     136      real watercapS(iip1,jjp1)
    134137
    135138      real ptotal, co2icetotal
     
    161164      real, dimension(:,:), allocatable :: tauscalingold
    162165      real, dimension(:,:), allocatable :: totcloudfracold
     166      real, dimension(:,:), allocatable :: watercapold
    163167
    164168      real tab_cntrl(100)
     
    362366      allocate(tauscalingold(imold+1,jmold+1))
    363367      allocate(totcloudfracold(imold+1,jmold+1))
     368      allocate(watercapold(imold+1,jmold+1))
    364369
    365370      allocate(var (imold+1,jmold+1,llm))
     
    687692
    688693c-----------------------------------------------------------------------
    689 c 5.1 Lecture des champs 2D (co2ice, emis,ps,tsurf,Tg[10], q2surf, tauscaling,totcloudfrac)
     694c 5.1 Lecture des champs 2D (co2ice, emis,ps,tsurf,Tg[10], q2surf, tauscaling,totcloudfrac,watercap)
    690695c-----------------------------------------------------------------------
    691696 
     
    800805        IF (ierr .NE. NF_NOERR) THEN
    801806           PRINT*, "lect_start_archive: Failed loading <totcloudfrac>"
     807           PRINT*, NF_STRERROR(ierr)
     808           CALL abort
     809        ENDIF
     810      ENDIF
     811c
     812      ierr = NF_INQ_VARID (nid, "watercap", nvarid)
     813      IF (ierr .NE. NF_NOERR) THEN
     814         PRINT*, "lect_start_archive: <watercap> not in file"
     815         watercapold(:,:) = 0.
     816      ELSE
     817#ifdef NC_DOUBLE
     818        ierr = NF_GET_VARA_DOUBLE(nid, nvarid,start,count,
     819     &                            watercapold)
     820#else
     821        ierr = NF_GET_VARA_REAL(nid, nvarid,start,count,
     822     &                          watercapold)
     823#endif
     824        IF (ierr .NE. NF_NOERR) THEN
     825           PRINT*, "lect_start_archive: Failed loading <watercap>"
    802826           PRINT*, NF_STRERROR(ierr)
    803827           CALL abort
     
    10911115     &                   jjm,1,rlonuold,rlatvold,rlonu,rlatv)
    10921116      call gr_dyn_fi (1,iim+1,jjm+1,ngrid,totcloudfracs,totcloudfrac)
    1093      
     1117
     1118c Watercap
     1119      call interp_horiz (watercapold,watercaps,imold,jmold,iim,
     1120     &                   jjm,1,rlonuold,rlatvold,rlonu,rlatv)
     1121      call gr_dyn_fi (1,iim+1,jjm+1,ngrid,watercaps,watercap)
     1122
    10941123c     write(46,*) 'emis',emis
    10951124c-----------------------------------------------------------------------
     
    14521481      deallocate(tauscalingold)
    14531482      deallocate(totcloudfracold)
     1483      deallocate(watercapold)
    14541484      deallocate(var,varp1)
    14551485
Note: See TracChangeset for help on using the changeset viewer.