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.VENUS/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.VENUS/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.VENUS/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#\rm planet.h
     4#ln -s $2.h planet.h
    55 pgf95 -Bstatic cpdet.F90 moyzon.F moyzon2.F moytim.F dx_dp.F epflux.F90 \
    66    io.F90 dmass.F90 reverse.F90 $1.F90 \
Note: See TracChangeset for help on using the changeset viewer.