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

Location:
trunk/LMDZ.TITAN/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.TITAN/Tools/angmom.F90

    r842 r1356  
    242242call get_var3d(infid,lonlength,latlength,timelength,text,ps,ierr1,ierr2)
    243243if (ierr1.ne.NF_NOERR) then
    244   write(*,*) "  looking for psol instead... "
    245   text="psol"
     244  write(*,*) "  looking for ps instead... "
     245  text="ps"
    246246  call get_var3d(infid,lonlength,latlength,timelength,text,ps,ierr1,ierr2)
    247   if (ierr1.ne.NF_NOERR) stop "Error: Failed to get psol ID"
     247  if (ierr1.ne.NF_NOERR) then
     248    write(*,*) "  looking for psol instead... "
     249    text="psol"
     250    call get_var3d(infid,lonlength,latlength,timelength,text,ps,ierr1,ierr2)
     251    if (ierr1.ne.NF_NOERR) stop "Error: Failed to get psol ID"
     252  endif
    248253endif
    249254if (ierr2.ne.NF_NOERR) stop "Error: Failed reading surface pressure"
     
    467472  do ilev=1,altlength
    468473! Need to be consistent with GCM computations
    469 !    if (za(ilon,ilat,ilev,itim).ne.miss_val) then
     474    if (vitu(ilon,ilat,ilev,itim).ne.miss_val) then
    470475     rayon(ilon,ilat,ilev,itim) = a0
    471476!     rayon(ilon,ilat,ilev,itim) = za(ilon,ilat,ilev,itim) + a0
    472477      grav(ilon,ilat,ilev,itim) = g0*a0*a0 &
    473478                 /(rayon(ilon,ilat,ilev,itim)*rayon(ilon,ilat,ilev,itim))
    474 !    else
    475 !     rayon(ilon,ilat,ilev,itim) = miss_val
    476 !      grav(ilon,ilat,ilev,itim) = miss_val
    477 !    endif
     479    else
     480     rayon(ilon,ilat,ilev,itim) = miss_val
     481      grav(ilon,ilat,ilev,itim) = miss_val
     482    endif
    478483  enddo
    479484 enddo
     
    526531 do ilat=1,latlength
    527532  do ilev=1,altlength
     533    if (rayon(ilon,ilat,ilev,itim).ne.miss_val) then
    528534      oaam(itim) = oaam(itim) &
    529535       + osam(ilon,ilat,ilev,itim)/ hadday * dmass(ilon,ilat,ilev,itim)
    530536      raam(itim) = raam(itim) &
    531537       + rsam(ilon,ilat,ilev,itim)/ hadday * dmass(ilon,ilat,ilev,itim)
     538    endif
    532539  enddo
    533540 enddo
  • trunk/LMDZ.TITAN/Tools/compile_pgf

    r816 r1356  
    11# path for netcdf should be adapted to your configuration !
    22
    3 \rm planet.h
    4 ln -s $2.h planet.h
     3\cp -f $2.h planet.h
    54 pgf95 -Bstatic cpdet.F90 moyzon.F moyzon2.F moytim.F dx_dp.F epflux.F90 \
    65    io.F90 dmass.F90 reverse.F90 $1.F90 \
  • trunk/LMDZ.TITAN/Tools/planet.h

    r816 r1356  
    11! Parameters needed to integrate hydrostatic equation:
    22
    3 real,parameter :: g0=8.87
    4 !g0: exact mean gravity at radius=6051.km
     3real,parameter :: g0=1.35
     4!g0: exact mean gravity at radius=2575.km
    55
    6 real,parameter :: a0=6051.E3
    7 !a0: 'mean' radius=6051.km
     6real,parameter :: a0=2575.E3
     7!a0: 'mean' radius=2575.km
    88
    9 real,parameter :: R0=191.4 ! molecular gas constant
     9real,parameter :: R0=296.9 ! molecular gas constant
    1010
    11 real,parameter :: psref=9.2e6 ! reference pressure at surface (Pa)
     11real,parameter :: psref=1.4e5 ! reference pressure at surface (Pa)
    1212
    13 real,parameter :: omega=2.992677e-7 ! angular rotation speed (s-1)
     13real,parameter :: omega=4.5238899E-06 ! angular rotation speed (s-1)
    1414
    15 real,parameter :: localday=1.0087e7 ! local day (s)
     15real,parameter :: localday=1.37889e6 ! local day (s)
    1616
    17 character (len=5),parameter :: planet="Venus"
     17character (len=5),parameter :: planet="Titan"
    1818
    19 real,parameter :: cp0=1000. !doit etre egal a cpp (dyn) et RCPD (phy)
    20 real,parameter :: t0=460.
    21 real,parameter :: nu=0.35
    22 
     19real,parameter :: cp0=1039. !doit etre egal a cpp (dyn) et RCPD (phy)
     20real,parameter :: t0=0.
     21real,parameter :: nu=0.
Note: See TracChangeset for help on using the changeset viewer.