Changeset 1356 for trunk/LMDZ.TITAN/Tools
- Timestamp:
- Oct 8, 2014, 9:26:28 AM (10 years ago)
- Location:
- trunk/LMDZ.TITAN/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.TITAN/Tools/angmom.F90
r842 r1356 242 242 call get_var3d(infid,lonlength,latlength,timelength,text,ps,ierr1,ierr2) 243 243 if (ierr1.ne.NF_NOERR) then 244 write(*,*) " looking for ps olinstead... "245 text="ps ol"244 write(*,*) " looking for ps instead... " 245 text="ps" 246 246 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 248 253 endif 249 254 if (ierr2.ne.NF_NOERR) stop "Error: Failed reading surface pressure" … … 467 472 do ilev=1,altlength 468 473 ! Need to be consistent with GCM computations 469 ! if (za(ilon,ilat,ilev,itim).ne.miss_val) then474 if (vitu(ilon,ilat,ilev,itim).ne.miss_val) then 470 475 rayon(ilon,ilat,ilev,itim) = a0 471 476 ! rayon(ilon,ilat,ilev,itim) = za(ilon,ilat,ilev,itim) + a0 472 477 grav(ilon,ilat,ilev,itim) = g0*a0*a0 & 473 478 /(rayon(ilon,ilat,ilev,itim)*rayon(ilon,ilat,ilev,itim)) 474 !else475 !rayon(ilon,ilat,ilev,itim) = miss_val476 !grav(ilon,ilat,ilev,itim) = miss_val477 !endif479 else 480 rayon(ilon,ilat,ilev,itim) = miss_val 481 grav(ilon,ilat,ilev,itim) = miss_val 482 endif 478 483 enddo 479 484 enddo … … 526 531 do ilat=1,latlength 527 532 do ilev=1,altlength 533 if (rayon(ilon,ilat,ilev,itim).ne.miss_val) then 528 534 oaam(itim) = oaam(itim) & 529 535 + osam(ilon,ilat,ilev,itim)/ hadday * dmass(ilon,ilat,ilev,itim) 530 536 raam(itim) = raam(itim) & 531 537 + rsam(ilon,ilat,ilev,itim)/ hadday * dmass(ilon,ilat,ilev,itim) 538 endif 532 539 enddo 533 540 enddo -
trunk/LMDZ.TITAN/Tools/compile_pgf
r816 r1356 1 1 # path for netcdf should be adapted to your configuration ! 2 2 3 \rm planet.h 4 ln -s $2.h planet.h 3 \cp -f $2.h planet.h 5 4 pgf95 -Bstatic cpdet.F90 moyzon.F moyzon2.F moytim.F dx_dp.F epflux.F90 \ 6 5 io.F90 dmass.F90 reverse.F90 $1.F90 \ -
trunk/LMDZ.TITAN/Tools/planet.h
r816 r1356 1 1 ! Parameters needed to integrate hydrostatic equation: 2 2 3 real,parameter :: g0= 8.874 !g0: exact mean gravity at radius= 6051.km3 real,parameter :: g0=1.35 4 !g0: exact mean gravity at radius=2575.km 5 5 6 real,parameter :: a0= 6051.E37 !a0: 'mean' radius= 6051.km6 real,parameter :: a0=2575.E3 7 !a0: 'mean' radius=2575.km 8 8 9 real,parameter :: R0= 191.4! molecular gas constant9 real,parameter :: R0=296.9 ! molecular gas constant 10 10 11 real,parameter :: psref= 9.2e6! reference pressure at surface (Pa)11 real,parameter :: psref=1.4e5 ! reference pressure at surface (Pa) 12 12 13 real,parameter :: omega= 2.992677e-7! angular rotation speed (s-1)13 real,parameter :: omega=4.5238899E-06 ! angular rotation speed (s-1) 14 14 15 real,parameter :: localday=1. 0087e7! local day (s)15 real,parameter :: localday=1.37889e6 ! local day (s) 16 16 17 character (len=5),parameter :: planet=" Venus"17 character (len=5),parameter :: planet="Titan" 18 18 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 19 real,parameter :: cp0=1039. !doit etre egal a cpp (dyn) et RCPD (phy) 20 real,parameter :: t0=0. 21 real,parameter :: nu=0.
Note: See TracChangeset
for help on using the changeset viewer.