Changeset 2408 for LMDZ5/branches/testing/libf/phydev/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/phydev/physiq.F90
r2258 r2408 5 5 & debut,lafin,jD_cur, jH_cur,pdtphys, & 6 6 & paprs,pplay,pphi,pphis,presnivs, & 7 & u,v, t,qx, &7 & u,v,rot,t,qx, & 8 8 & flxmass_w, & 9 9 & d_u, d_v, d_t, d_qx, d_ps & … … 11 11 12 12 USE dimphy, only : klon,klev 13 USE infotrac , only : nqtot14 USE comgeomphy, only : rlatd13 USE infotrac_phy, only : nqtot 14 USE geometry_mod, only : latitude 15 15 USE comcstphy, only : rg 16 16 USE iophy, only : histbeg_phy,histwrite_phy … … 18 18 USE mod_phys_lmdz_para, only : jj_nb 19 19 USE phys_state_var_mod, only : phys_state_var_init 20 USE mod_grid_phy_lmdz, ONLY: nbp_lon,nbp_lat 20 21 21 22 #ifdef CPP_XIOS … … 26 27 27 28 IMPLICIT none 28 #include "dimensions.h"29 30 integer,parameter :: jjmp1=jjm+1-1/jjm31 integer,parameter :: iip1=iim+132 29 ! 33 30 ! Routine argument: … … 55 52 real,intent(out) :: d_qx(klon,klev,nqtot) ! physics tendency on tracers 56 53 real,intent(out) :: d_ps(klon) ! physics tendency on surface pressure 57 real,intent(in) :: dudyn(iim+1,jjmp1,klev) ! Not used 54 real,intent(in) :: dudyn(nbp_lon+1,nbp_lat,klev) ! Not used 55 REAL, intent(in):: rot(klon, klev) ! Not used 56 ! relative vorticity, in s-1, needed for frontal waves 58 57 59 58 integer,save :: itau=0 ! counter to count number of calls to physics … … 114 113 ! define variables which will be written in "histins.nc" file 115 114 call histdef(nid_hist,'temperature','Atmospheric temperature','K', & 116 iim,jj_nb,nhori,klev,1,klev,zvertid,32, &115 nbp_lon,jj_nb,nhori,klev,1,klev,zvertid,32, & 117 116 'inst(X)',t_ops,t_wrt) 118 117 call histdef(nid_hist,'u','Eastward Zonal Wind','m/s', & 119 iim,jj_nb,nhori,klev,1,klev,zvertid,32, &118 nbp_lon,jj_nb,nhori,klev,1,klev,zvertid,32, & 120 119 'inst(X)',t_ops,t_wrt) 121 120 call histdef(nid_hist,'v','Northward Meridional Wind','m/s', & 122 iim,jj_nb,nhori,klev,1,klev,zvertid,32, &121 nbp_lon,jj_nb,nhori,klev,1,klev,zvertid,32, & 123 122 'inst(X)',t_ops,t_wrt) 124 123 call histdef(nid_hist,'ps','Surface Pressure','Pa', & 125 iim,jj_nb,nhori,1,1,1,zvertid,32, &124 nbp_lon,jj_nb,nhori,1,1,1,zvertid,32, & 126 125 'inst(X)',t_ops,t_wrt) 127 126 ! end definition sequence … … 160 159 ! newtonian relaxation towards temp_newton() 161 160 do k=1,klev 162 temp_newton(1:klon,k)=280.+cos( rlatd(1:klon))*40.-pphi(1:klon,k)/rg*6.e-3161 temp_newton(1:klon,k)=280.+cos(latitude(1:klon))*40.-pphi(1:klon,k)/rg*6.e-3 163 162 d_t(1:klon,k)=(temp_newton(1:klon,k)-t(1:klon,k))/1.e5 164 163 enddo
Note: See TracChangeset
for help on using the changeset viewer.