Changeset 2408 for LMDZ5/branches/testing/libf/phymar/physiq.F90
- Timestamp:
- Dec 14, 2015, 11:43:09 AM (9 years ago)
- Location:
- LMDZ5/branches/testing
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/branches/testing
- Property svn:mergeinfo changed
/LMDZ5/trunk merged: 2293-2295,2297,2299-2302,2305-2313,2315,2317-2380,2382-2396
- Property svn:mergeinfo changed
-
LMDZ5/branches/testing/libf/phymar/physiq.F90
r2258 r2408 11 11 & debut,lafin,jD_cur, jH_cur,pdtphys, & 12 12 & paprs,pplay,pphi,pphis,ppresnivs, & 13 & u,v, t,qx, &13 & u,v,rot,t,qx, & 14 14 & flxmass_w, & 15 15 & d_u, d_v, d_t, d_qx, d_ps & … … 17 17 18 18 USE dimphy, only : klon,klev,klevp1 19 USE infotrac , only : nqtot20 USE comgeomphy, only : rlatd,rlond,airephy19 USE infotrac_phy, only : nqtot 20 USE geometry_mod, only : latitude,longitude,cell_area 21 21 !USE comcstphy, only : rg 22 22 USE iophy, only : histbeg_phy,histwrite_phy … … 120 120 real,intent(in) :: u(klon,klev) ! eastward zonal wind (m/s) 121 121 real,intent(in) :: v(klon,klev) ! northward meridional wind (m/s) 122 REAL, intent(in):: rot(klon, klev) ! relative vorticity, 123 ! in s-1, needed for frontal waves 122 124 real,intent(in) :: t(klon,klev) ! temperature (K) 123 125 real,intent(in) :: qx(klon,klev,nqtot) ! tracers (.../kg_air) … … 498 500 499 501 DO i=1,klon 500 IF ( rlond(i) .LT. 0) THEN501 lonh_HOST(i)= rlond(i)*12./rpi+24. ! from radians to hours502 IF (longitude(i) .LT. 0) THEN 503 lonh_HOST(i)=longitude(i)*12./rpi+24. ! from radians to hours 502 504 ELSE 503 lonh_HOST(i)= rlond(i)*12./rpi ! from radians to hours505 lonh_HOST(i)=longitude(i)*12./rpi ! from radians to hours 504 506 ENDIF 505 507 ENDDO 506 latr_HOST(:)= rlatd(:) ! from radians to radians508 latr_HOST(:)=latitude(:) ! from radians to radians 507 509 508 510 !PRINT*, 'lonh_HOST(:)=',lonh_HOST(:) … … 689 691 PRINT*, 'Initialisation de la temperature de surface avec les SST aquaplanète' 690 692 DO i = 1,klon 691 Ts___HOST(i)=273.+27.*(1-sin(1.5* rlatd(i))**2)692 IF (( rlatd(i).GT.1.0471975).OR.(rlatd(i).LT.-1.0471975)) THEN693 Ts___HOST(i)=273.+27.*(1-sin(1.5*latitude(i))**2) 694 IF ((latitude(i).GT.1.0471975).OR.(latitude(i).LT.-1.0471975)) THEN 693 695 Ts___HOST(i)=273. 694 696 ENDIF … … 791 793 DO k = 1, klev 792 794 i=klev+1-k 793 !omega(i,k) = RG*flxmass_w(i,k) / airephy(i) ! omega en Pa/s794 Wa___HOST(:,i)=flxmass_w(:,k) / airephy(:) * (gZam_HOST(:,i+1) - gZam_HOST(:,i))/(paprs(:,k+1)-paprs(:,k)) ! Equilibre hydrostatique795 !omega(i,k) = RG*flxmass_w(i,k) / cell_area(i) ! omega en Pa/s 796 Wa___HOST(:,i)=flxmass_w(:,k) / cell_area(:) * (gZam_HOST(:,i+1) - gZam_HOST(:,i))/(paprs(:,k+1)-paprs(:,k)) ! Equilibre hydrostatique 795 797 END DO 796 798 Wa___HOST(:,klev)=0 ! Vitesse nulle à la surface. … … 853 855 !IF (debut) THEN 854 856 DO i=1,klon 855 sst__HOST(i)=273.+27.*(1-sin(1.5* rlatd(i))**2)856 IF (( rlatd(i).GT.1.0471975).OR.(rlatd(i).LT.-1.0471975)) THEN857 sst__HOST(i)=273.+27.*(1-sin(1.5*latitude(i))**2) 858 IF ((latitude(i).GT.1.0471975).OR.(latitude(i).LT.-1.0471975)) THEN 857 859 sst__HOST(i)=273. 858 860 ENDIF … … 908 910 ikl0 = i 909 911 PRINT*,'Attention : NaN at' 910 PRINT*,'longitude=', rlond(i)*180/rpi911 PRINT*,'latitude=', rlatd(i)*180/rpi912 PRINT*,'longitude=',longitude(i)*180/rpi 913 PRINT*,'latitude=',latitude(i)*180/rpi 912 914 ENDIF 913 915 ENDDO
Note: See TracChangeset
for help on using the changeset viewer.