Ignore:
Timestamp:
Feb 20, 2011, 12:20:51 PM (14 years ago)
Author:
aslmd
Message:

LMD_MM_MARS: corrections cycle de l'eau propagees a la nouvelle physique. + corrections readmeteo.F90 [version synchronisee precedemment n etait pas la plus a jour] + corrections api.F90 pour avoir cp, R comme GCM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mesoscale/LMD_MM_MARS/SRC/PREP_MARS/readmeteo.F90

    r72 r73  
    7474!! Intermediate data arrays
    7575integer :: k,l,m,n,p
    76 real, dimension(:), allocatable :: lat,lon,time,alt,aps,bps,levels,dsoilvert
     76real, dimension(:), allocatable :: lat,lon,time,alt,aps,bps,levels,vertdsoil
    7777real, dimension(:,:), allocatable :: vide,ones,ghtsfile
    7878real, dimension(:,:), allocatable :: interm
     
    207207allocate(dsoilfile(lonlen,latlen,altlen,timelen))
    208208allocate(isoilfile(lonlen,latlen,altlen,timelen))
    209 allocate(dsoilvert(altlen))
     209allocate(vertdsoil(altlen))
    210210!allocate(tfileorig(lonlen,latlen,altlen,timelen))
    211211allocate(ufile(lonlen,latlen,altlen,timelen))
     
    240240isoilfile(:,:,:,:)=0
    241241dsoilfile(:,:,:,:)=0
    242 dsoilvert(:)=0.
     242vertdsoil(:)=0.
    243243!tfileorig(:,:,:,:)=0
    244244!ufileorig(:,:,:,:)=0
     
    591591
    592592    print *,'Surface Water ice'
    593     ierr=NF_INQ_VARID(nid,"qsurf01",nvarid)
     593!!!!!! ATTENTION ATTENTION
     594!!!!!! water ice a la surface est qsurf(ig,nqmx)
     595    ierr=NF_INQ_VARID(nid,"qsurf02",nvarid)
    594596    if (ierr.ne.NF_NOERR) then
    595       write(*,*) "...No qsurf01 - surface Water ice set to 0"
     597      write(*,*) "...No qsurf02 - surface Water ice set to 0"
    596598      swatericefile(:,:,:)=0.
    597599    else
     
    648650        write(*,*) "...No soildepth - Set to -999"  !!! see soil_settings in LMD physics
    649651        DO l=1,altlen
    650                 dsoilvert(l)=-999.
     652                vertdsoil(l)=-999.
    651653        ENDDO
    652654    else
    653         ierr=NF_GET_VAR_REAL(nid,nvarid,dsoilvert)
     655        ierr=NF_GET_VAR_REAL(nid,nvarid,vertdsoil)
    654656    endif
    655657    print *, 'wait a minute' !! AS: I know this could be better
     
    657659     DO n=1,latlen
    658660      DO p=1,timelen
    659        dsoilfile(m,n,:,p) = dsoilvert(:)
     661       dsoilfile(m,n,:,p) = vertdsoil(:)
    660662      ENDDO
    661663     ENDDO
     
    10501052!------------------------!
    10511053FIELD='SM100200'
    1052 UNITS='kg/kg'
     1054UNITS='kg/m2'
    10531055DESC='Surf water ice'
    10541056XLVL=200100.
     
    14701472deallocate(isoilfile)
    14711473deallocate(dsoilfile)
    1472 !deallocate(dsoilvert)
    14731474!deallocate(tfileorig)
    14741475deallocate(ufile)
Note: See TracChangeset for help on using the changeset viewer.