Changeset 366 for codes/icosagcm/trunk/src/etat0_dcmip3.f90
- Timestamp:
- 10/30/15 15:41:06 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
codes/icosagcm/trunk/src/etat0_dcmip3.f90
r356 r366 7 7 CONTAINS 8 8 9 SUBROUTINE compute_etat0(ngrid,lon,lat, phis,ps,temp,ulon,ulat, q)9 SUBROUTINE compute_etat0(ngrid,lon,lat, phis,ps,temp,ulon,ulat,geopot,q) 10 10 USE genmod 11 11 USE dcmip_initial_conditions_test_1_2_3 … … 20 20 REAL(rstd), INTENT(OUT) :: ulat(ngrid,llm) 21 21 REAL(rstd), INTENT(OUT) :: temp(ngrid,llm) 22 REAL(rstd), INTENT(OUT) :: geopot(ngrid,llm+1) 22 23 REAL(rstd), INTENT(OUT) :: q(ngrid,llm,nqtot) 23 24 REAL(rstd),PARAMETER :: Peq=1e5 ! Reference surface pressure at the equator (hPa) 24 REAL(rstd) :: dummy, pp 25 REAL(rstd) :: dummy, pp, zz 25 26 INTEGER :: l,ij 26 27 pp=peq … … 28 29 CALL test3_gravity_wave(lon(ij),lat(ij),pp,dummy,0, & 29 30 dummy,dummy,dummy,dummy,phis(ij),ps(ij),dummy,dummy) 31 END DO 32 DO l=ll_begin,ll_endp1 33 DO ij=1,ngrid 34 pp = ap(l) + bp(l)*ps(ij) ! half-layer pressure 35 CALL test3_gravity_wave(lon(ij),lat(ij),pp,zz,0, & 36 dummy,dummy,dummy,dummy,dummy,dummy,dummy,dummy) 37 geopot(ij,l) = g*zz ! initialize geopotential for NH 38 END DO 39 q(:,l,:)=0. 30 40 END DO 31 41 DO l=ll_begin,ll_end
Note: See TracChangeset
for help on using the changeset viewer.