Changeset 975 for trunk/LMDZ.VENUS/Tools
- Timestamp:
- May 29, 2013, 12:17:13 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.VENUS/Tools/psi.F90
r816 r975 45 45 real,dimension(:,:,:),allocatable :: ps ! surface pressure 46 46 real,dimension(:,:,:,:),allocatable :: vitv ! meridional wind (in m/s) 47 real,dimension(:,:,:,:),allocatable :: za ! areoid levels (m) 47 48 48 49 real,dimension(:,:,:,:),allocatable :: rayon ! distance to center (m) … … 166 167 ! 2.1.4 Altitude above areoide 167 168 !=============================================================================== 168 ! Only needed if g(z) on Titan... 169 170 !allocate(za(lonlength,latlength,altlength,timelength)) 171 172 !text="zareoid" 173 !call get_var4d(infid,lonlength,latlength,altlength,timelength,text,za,ierr1,ierr2) 174 !if (ierr1.ne.NF_NOERR) stop "Error: Failed to get za ID" 175 !if (ierr2.ne.NF_NOERR) stop "Error: Failed reading zareoid" 169 170 allocate(za(lonlength,latlength,altlength,timelength)) 171 172 text="zareoid" 173 call get_var4d(infid,lonlength,latlength,altlength,timelength,text,za,ierr1,ierr2) 174 if (ierr1.ne.NF_NOERR) stop "Error: Failed to get za ID" 175 if (ierr2.ne.NF_NOERR) stop "Error: Failed reading zareoid" 176 176 177 177 !=============================================================================== … … 191 191 do ilev=1,altlength 192 192 ! Need to be consistent with GCM computations 193 !if (za(ilon,ilat,ilev,itim).ne.miss_val) then193 if (za(ilon,ilat,ilev,itim).ne.miss_val) then 194 194 rayon(ilon,ilat,ilev,itim) = a0 195 195 ! rayon(ilon,ilat,ilev,itim) = za(ilon,ilat,ilev,itim) + a0 196 196 grav(ilon,ilat,ilev,itim) = g0*a0*a0 & 197 197 /(rayon(ilon,ilat,ilev,itim)*rayon(ilon,ilat,ilev,itim)) 198 !else199 !rayon(ilon,ilat,ilev,itim) = miss_val200 !grav(ilon,ilat,ilev,itim) = miss_val201 !endif198 else 199 rayon(ilon,ilat,ilev,itim) = miss_val 200 grav(ilon,ilat,ilev,itim) = miss_val 201 endif 202 202 enddo 203 203 enddo … … 220 220 do ilev=1,altlength 221 221 do ilon=1,lonlength 222 if ( rayon(ilon,ilat,ilev,itim).ne.miss_val) then222 if (dmass(ilon,ilat,ilev,itim).ne.miss_val) then 223 223 vm(ilon,ilat,ilev,itim) = vitv(ilon,ilat,ilev,itim) & 224 224 * dmass(ilon,ilat,ilev,itim) & … … 235 235 psi(ilat,altlength,itim) = 0. 236 236 do ilon=1,lonlength 237 if ( rayon(ilon,ilat,altlength,itim).ne.miss_val) then237 if (vm(ilon,ilat,altlength,itim).ne.miss_val) then 238 238 psi(ilat,altlength,itim) = psi(ilat,altlength,itim) & 239 239 + vm(ilon,ilat,altlength,itim) … … 243 243 psi(ilat,ilev,itim) = psi(ilat,ilev+1,itim) 244 244 do ilon=1,lonlength 245 if ( rayon(ilon,ilat,ilev,itim).ne.miss_val) then245 if (vm(ilon,ilat,ilev,itim).ne.miss_val) then 246 246 psi(ilat,ilev,itim) = psi(ilat,ilev,itim) & 247 247 + vm(ilon,ilat,ilev,itim)
Note: See TracChangeset
for help on using the changeset viewer.