Changeset 1545 for trunk/LMDZ.TITAN/libf
- Timestamp:
- May 2, 2016, 8:31:27 AM (9 years ago)
- Location:
- trunk/LMDZ.TITAN/libf/phytitan
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.TITAN/libf/phytitan/iophy.F90
r1530 r1545 29 29 USE ioipsl 30 30 implicit none 31 real,dimension(klon),intent(in) :: rlon 32 real,dimension(klon),intent(in) :: rlat 31 real,dimension(klon),intent(in) :: rlon ! longitudes, in degrees 32 real,dimension(klon),intent(in) :: rlat ! latitudes, in degrees 33 33 34 34 REAL,dimension(klon_glo) :: rlat_glo -
trunk/LMDZ.TITAN/libf/phytitan/muphys3D.F
r1543 r1545 65 65 use dimphy 66 66 c use radcommon_h, only : volume,rayon,vrat,drayon,dvolume 67 USE geometry_mod, only: latitude 67 USE geometry_mod, only: latitude ! in radians 68 68 69 69 IMPLICIT NONE -
trunk/LMDZ.TITAN/libf/phytitan/pg2.old
r1543 r1545 42 42 43 43 use dimphy 44 USE geometry_mod, ONLY: latitude 44 USE geometry_mod, ONLY: latitude_deg 45 45 #include "dimensions.h" 46 46 #include "microtab.h" … … 180 180 lati(1) = 0.5*RPI 181 181 DO ig=2,ngrid-1 182 lati(ig) = latitude (2+(ig-2)*iim)*RPI/180.182 lati(ig) = latitude_deg(2+(ig-2)*iim)*RPI/180. 183 183 ENDDO 184 184 lati(ngrid) = -0.5*RPI … … 197 197 c print*,"ENTREE PG2 PREMIER APPEL" 198 198 c print*,airetot,' airetot?= ',4.*RPI*RA*RA 199 c print*,1,latitude (1),aire(1),aire(1)/airetot,' aires'199 c print*,1,latitude_deg(1),aire(1),aire(1)/airetot,' aires' 200 200 c DO ig=2,ngrid-1 201 c print*,ig,latitude (2+(ig-2)*iim),aire(ig),aire(ig)/airetot,' aires'201 c print*,ig,latitude_deg(2+(ig-2)*iim),aire(ig),aire(ig)/airetot,' aires' 202 202 c ENDDO 203 c print*,ngrid,latitude (klon),aire(ngrid),aire(ngrid)/airetot,' aires'203 c print*,ngrid,latitude_deg(klon),aire(ngrid),aire(ngrid)/airetot,' aires' 204 204 c stop 205 205 -
trunk/LMDZ.TITAN/libf/phytitan/phyetat0.F90
r1543 r1545 13 13 USE iostart 14 14 USE infotrac 15 USE geometry_mod, only: latitude ,longitude15 USE geometry_mod, only: latitude_deg,longitude_deg 16 16 USE time_phylmdz_mod, only: itau_phy, raz_date 17 17 … … 33 33 integer :: i,isoil 34 34 CHARACTER(len=2) :: str2 35 REAL :: lon_startphy(klon), lat_startphy(klon) 35 36 36 37 ! les variables globales lues dans le fichier restart … … 75 76 ENDIF 76 77 77 ! read latitudes 78 call get_field("latitude",latitude,found) 79 IF (.not.found) THEN 80 PRINT*, 'phyetat0: Le champ <latitude> est absent' 81 CALL abort 82 ENDIF 83 84 ! read longitudes 85 call get_field("longitude",longitude,found) 86 IF (.not.found) THEN 87 PRINT*, 'phyetat0: Le champ <longitude> est absent' 88 CALL abort 89 ENDIF 78 ! read latitudes and make a sanity check (because already known from dyn) 79 call get_field("latitude",lat_startphy,found) 80 IF (.not.found) THEN 81 PRINT*, 'phyetat0: Le champ <latitude> est absent' 82 CALL abort 83 ENDIF 84 DO i=1,klon 85 IF (ABS(lat_startphy(i)-latitude_deg(i))>=0.01) THEN 86 WRITE(*,*) "phyetat0: Warning! Latitude discrepancy wrt startphy file:",& 87 " i=",i," lat_startphy(i)=",lat_startphy(i),& 88 " latitude_deg(i)=",latitude_deg(i) 89 CALL abort 90 ENDIF 91 ENDDO 92 93 ! read longitudes and make a sanity check (because already known from dyn) 94 call get_field("longitude",lon_startphy,found) 95 IF (.not.found) THEN 96 PRINT*, 'phyetat0: Le champ <longitude> est absent' 97 CALL abort 98 ENDIF 99 DO i=1,klon 100 IF (ABS(lon_startphy(i)-longitude_deg(i))>=0.01) THEN 101 WRITE(*,*) "phyetat0: Warning! Longitude discrepancy wrt startphy file:",& 102 " i=",i," lon_startphy(i)=",lon_startphy(i),& 103 " longitude_deg(i)=",longitude_deg(i) 104 CALL abort 105 ENDIF 106 ENDDO 90 107 91 108 ! read in other variables here ... … … 319 336 resch4(1) = 0. ! pole nord = 1 point 320 337 DO i=2,klon 321 if ((latitude (i).ge.75..and.latitude(i).le.85.).or. &322 (latitude (i).ge.-85.and.latitude(i).le.-75.)) then338 if ((latitude_deg(i).ge.75..and.latitude_deg(i).le.85.).or. & 339 (latitude_deg(i).ge.-85.and.latitude_deg(i).le.-75.)) then 323 340 resch4(i) = 2. 324 341 else … … 352 369 353 370 ! do some more initializations 354 call init_iophy_new(latitude ,longitude)371 call init_iophy_new(latitude_deg,longitude_deg) 355 372 356 373 end subroutine phyetat0 -
trunk/LMDZ.TITAN/libf/phytitan/phyredem.F90
r1543 r1545 12 12 put_var,put_field 13 13 USE infotrac 14 USE geometry_mod, only: longitude , latitude14 USE geometry_mod, only: longitude_deg, latitude_deg 15 15 USE time_phylmdz_mod, only: day_end, annee_ref, itau_phy, raz_date 16 16 … … 64 64 65 65 CALL put_field("longitude", & 66 "Longitudes de la grille physique",longitude )66 "Longitudes de la grille physique",longitude_deg) 67 67 68 68 CALL put_field("latitude", & 69 "Latitudes de la grille physique",latitude )69 "Latitudes de la grille physique",latitude_deg) 70 70 71 71 ! variables -
trunk/LMDZ.TITAN/libf/phytitan/physiq.F
r1543 r1545 58 58 USE infotrac 59 59 use dimphy 60 USE geometry_mod, ONLY: longitude, latitude, cell_area, dx, dy 60 USE geometry_mod, ONLY: longitude, latitude, ! in radians 61 & longitude_deg, latitude_deg, ! in degrees 62 & cell_area, dx, dy 61 63 use cpdet_mod, only: cpdet, t2tpot 62 64 USE mod_phys_lmdz_para, only : is_parallel,jj_nb … … 861 863 862 864 c dans zenang, Ls en degres ; dans mucorr, Ls en radians 863 call mucorr(klon,zls,latitude ,rmu0bar,fractbar)865 call mucorr(klon,zls,latitude_deg,rmu0bar,fractbar) 864 866 IF (cycle_diurne) THEN 865 867 zdtime=dtime*REAL(radpas) ! pas de temps du rayonnement (s) 866 CALL zenang(zlsdeg,gmtime,zdtime,latitude,longitude,rmu0,fract) 868 CALL zenang(zlsdeg,gmtime,zdtime,latitude_deg,longitude_deg, 869 & rmu0,fract) 867 870 ELSE 868 871 rmu0 = rmu0bar … … 917 920 $ paprs,pplay,ppk,radsol,falbe, 918 921 e solsw, sollw, sollwdown, fder, 919 e longitude , latitude, dx, dy,922 e longitude_deg, latitude_deg, dx, dy, 920 923 e debut, lafin, 921 924 s d_t_vdf,d_u_vdf,d_v_vdf,d_ts, … … 1368 1371 c A ADAPTER POUR VENUS ET TITAN!!! 1369 1372 c CALL lift_noro(klon,klev,dtime,paprs,pplay, 1370 c e latitude ,zmea,zstd,zpic,zgam,zthe,zpic,zval,1373 c e latitude_deg,zmea,zstd,zpic,zgam,zthe,zpic,zval, 1371 1374 c e igwd,idx,itest, 1372 1375 c e t_seri, u_seri, v_seri, … … 1425 1428 c==================================================================== 1426 1429 if (ballons.eq.1) then 1427 CALL ballon(30,pdtphys,rjourvrai,gmtime,latitude,longitude, 1430 CALL ballon(30,pdtphys,rjourvrai,gmtime, 1431 & latitude_deg,longitude_deg, 1428 1432 c C t,pplay,u,v,pphi) ! alt above surface (smoothed for GCM) 1429 1433 C t,pplay,u,v,zphi) ! alt above planet average radius … … 1459 1463 CALL aaam_bud (27,klon,klev,rjourvrai,gmtime, 1460 1464 C ra,rg,romega, 1461 C latitude ,longitude,pphis,1465 C latitude_deg,longitude_deg,pphis, 1462 1466 C zustrdr,zustrli,zustrcl, 1463 1467 C zvstrdr,zvstrli,zvstrcl, … … 1545 1549 c DO k = 1, klev 1546 1550 c DO i = 1, klon 1547 c mang(i,k) = RA*cos(latitude(i) *RPI/180.)1548 c . *(u_seri(i,k)+RA*cos(latitude(i) *RPI/180.)*ROMEGA)1551 c mang(i,k) = RA*cos(latitude(i)) 1552 c . *(u_seri(i,k)+RA*cos(latitude(i))*ROMEGA) 1549 1553 c . *cell_area(i)*(paprs(i,k)-paprs(i,k+1))/RG 1550 1554 c mangtot=mangtot+mang(i,k) -
trunk/LMDZ.TITAN/libf/phytitan/radtitan.F
r1543 r1545 33 33 USE infotrac 34 34 use dimphy 35 USE geometry_mod, ONLY: latitude 35 USE geometry_mod, ONLY: latitude ! in radians 36 36 USE optcld, only : iniqcld 37 37 use moyzon_mod, only:plevmoy … … 214 214 somcoslat=0. 215 215 do j=1,klon 216 coslat(j) = cos(latitude(j) *RPI/180.)216 coslat(j) = cos(latitude(j)) 217 217 somcoslat=somcoslat+coslat(j) 218 218 enddo
Note: See TracChangeset
for help on using the changeset viewer.