Ignore:
Timestamp:
Sep 23, 2013, 7:02:50 PM (11 years ago)
Author:
slebonnois
Message:

SL: update pour divers details titan + quelques modifs arch et makelmdz

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.TITAN/libf/phytitan/interface_surf.F90

    r495 r1048  
    4545      & tsol_rad, tsurf_new, alb_new)
    4646
     47      use write_field_phy
     48      use cpdet_mod, only: cpdet
     49
     50      IMPLICIT none
    4751
    4852! Cette routine sert d'aiguillage entre l'atmosphere et la surface en general
     
    141145
    142146  if (check) write(*,*) 'Entree ', modname
    143  
     147
    144148! Initialisations diverses
    145149!
     
    149153
    150154! ADAPTATION GCM POUR CP(T)
    151        zcp(1:klon) = cpdet(tsurf(1:klon))
     155       do ii=1,klon
     156         zcp(ii)=cpdet(tsurf(ii))
     157       enddo
    152158
    153159       IF (soil_model) THEN
    154160           CALL soil(dtime, knon, tsurf, tsoil,soilcap, soilflux)
    155161           cal(1:knon) = zcp(1:knon) / soilcap(1:knon)
     162! for tests:
     163!  call writefield_phy('interfsurf_hq_zcp',zcp,1)
     164!  call writefield_phy('interfsurf_hq_cal',cal,1)
     165!  call writefield_phy('interfsurf_hq_soilcap',soilcap,1)
    156166!       print*,"DIAGNOSTIC SOIL"
    157167!       print*,"soilcap=",soilcap
     
    186196     & tsurf_new, fluxsens, dflux_s)
    187197
     198  use write_field_phy
     199  use cpdet_mod, only: t2tpot, tpot2t
     200
     201  IMPLICIT none
     202
    188203! Cette routine calcule les fluxs en h a l'interface et eventuellement
    189204! une temperature de surface (au cas ou ok_veget = false)
     
    317332  ENDDO
    318333
     334! for tests: write output fields...
     335!  call writefield_phy('calcul_fluxs_d_ts',d_ts,1)
     336!  call writefield_phy('calcul_fluxs_fluxsens',fluxsens,1)
     337!  call writefield_phy('calcul_fluxs_dflux_s',dflux_s,1)
     338
    319339  END SUBROUTINE calcul_fluxs
    320340!
Note: See TracChangeset for help on using the changeset viewer.