Ignore:
Timestamp:
Oct 8, 2014, 9:26:28 AM (10 years ago)
Author:
slebonnois
Message:

SL: update to newstart/start2archive tools in Venus+Titan / additional diagnostics in radiative fluxes for Titan

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.TITAN/libf/phytitan/newstart.F

    r1056 r1356  
    2222      USE infotrac
    2323      use cpdet_mod, only: ini_cpdet,t2tpot
     24      use exner_hyb_m, only: exner_hyb
     25      use exner_milieu_m, only: exner_milieu
    2426
    2527      implicit none
     
    135137      integer, dimension(4) :: start,counter
    136138      REAL phisinverse(iip1,jjp1)  ! geopotentiel au sol avant inversion
    137       logical topoflag,albedoflag
     139      logical topoflag,albedoflag,razvitu,razvitv
    138140      real    albedo
    139141     
     
    969971c--------------------------------------------------------------
    970972
     973!!! ATTENTION TEMPORAIRE
     974c     ps(:,:)=146700.
     975
    971976      ptotal =  0.
    972977      DO j=1,jjp1
     
    10041009      CALL pression(ip1jmp1, ap, bp, ps, p3d)
    10051010         if (disvert_type==1) then
    1006            CALL exner_hyb(  ip1jmp1, ps, p3d,alpha,beta,pks, pk, pkf )
     1011           CALL exner_hyb(  ip1jmp1, ps, p3d, pks, pk, pkf )
    10071012         else ! we assume that we are in the disvert_type==2 case
    1008            CALL exner_milieu( ip1jmp1, ps, p3d, beta, pks, pk, pkf )
     1013           CALL exner_milieu( ip1jmp1, ps, p3d, pks, pk, pkf )
    10091014         endif
    10101015     
     
    10121017
    10131018c ATTENTION: peut servir, mais bon...
    1014 c modif: profil uniforme
    10151019c     do l=1,lmold
    10161020c      do j=1,jmold+1
    10171021c       do i=1,imold+1
     1022c modif: profil uniforme
    10181023c          told(i,j,l)=told(1,jmold/2,l)
     1024c mean T profile:
     1025c       told(i,j,l) = 142.1*exp(-((p3d(i,j,l)/100.+21.45)/40.11)**2.)
     1026c    .              + 106.3*exp(-((p3d(i,j,l)/100.-3183.)/4737.)**2.)
    10191027c       enddo
    10201028c      enddo
     
    10401048c on assure la periodicite
    10411049      teta(iip1,:,:) =  teta(1,:,:)
     1050
     1051! RESETING U TO 0: may be done through run.def
     1052       razvitu = . FALSE .
     1053       CALL getin('razvitu',razvitu)
     1054       razvitv = . FALSE .
     1055       CALL getin('razvitv',razvitv)
    10421056
    10431057c calcul des champ de vent; passage en vent covariant
     
    10571071     &                   rlonuold,rlatvold,rlonu,rlatv)
    10581072      call scal_wind(us,vs,unat,vnat)
     1073! Reseting u=0
     1074      if (razvitu) then
     1075           unat(:,:,:) = 0.
     1076      endif
    10591077      write (*,*) 'unat ', unat (1,2,1)    ! INFO
    10601078      do l=1,llm
     
    10701088      write (*,*) 'ucov ', ucov (1,2,1)  ! INFO
    10711089c     write(48,*) 'ucov',ucov
     1090! Reseting v=0
     1091      if (razvitv) then
     1092           vnat(:,:,:) = 0.
     1093      endif
     1094      write (*,*) 'vnat ', vnat (1,2,1)    ! INFO
    10721095      do l=1,llm
    10731096        do j = 1, jjm
Note: See TracChangeset for help on using the changeset viewer.