Changeset 1802 for trunk/LMDZ.GENERIC/libf/phystd/dyn1d
- Timestamp:
- Oct 19, 2017, 11:27:15 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/dyn1d/rcm1d.F
r1621 r1802 6 6 use mod_grid_phy_lmdz, only : regular_lonlat 7 7 use infotrac, only: nqtot, tname 8 use tracer_h, only: noms 8 9 use surfdat_h, only: albedodat, phisfi, dryness, watercaptag, 9 10 & zmea, zstd, zsig, zgam, zthe, … … 23 24 & nday, iphysiq 24 25 use callkeys_mod, only: tracer,check_cpp_match,rings_shadow, 25 & specOLR,water,pceil,ok_slab_ocean 26 & specOLR,water,pceil,ok_slab_ocean,photochem 26 27 USE comvert_mod, ONLY: ap,bp,aps,bps,pa,preff, sig, 27 28 & presnivs,pseudoalt,scaleheight … … 138 139 ! added by AS to avoid the use of adv trac common 139 140 character*20,allocatable :: nametrac(:) ! name of the tracer (no need for adv trac common) 141 character*20,allocatable :: nametmp(:) ! 140 142 141 143 real :: latitude(1), longitude(1), cell_area(1) … … 254 256 if (nq>0) then 255 257 allocate(tname(nq)) 258 allocate(noms(nq)) 256 259 allocate(q(llm,nq)) 257 260 allocate(qsurf(nq)) … … 267 270 ! minimal version, just read in the tracer names, 1 per line 268 271 read(90,*,iostat=ierr) tname(iq) 272 noms(iq)=tname(iq) 269 273 if (ierr.ne.0) then 270 274 write(*,*) 'rcm1d: error reading tracer names...' … … 292 296 endif 293 297 close(90) 298 294 299 295 300 else ! of if (tracer) … … 816 821 ! ----------------- 817 822 do isoil=0,nsoil-1 818 mlayer(isoil)= 2.e-4*(2.**(isoil-0.5)) ! mid-layer depth823 mlayer(isoil)=3.e-2*(2.**(isoil-0.5)) ! mid-layer depth 819 824 enddo 820 825 do isoil=1,nsoil 821 layer(isoil)= 2.e-4*(2.**(isoil-1)) ! layer depth826 layer(isoil)=3.e-2*(2.**(isoil-1)) ! layer depth 822 827 enddo 823 828 … … 838 843 endif 839 844 845 846 ! Initialize chemical species 847 ! ----------------- 848 if(tracer.and.photochem) then 849 call initracer(1,nq,tname) 850 allocate(nametmp(nq)) 851 nametmp(1:nq)=tname(1:nq) 852 call inichim_1D(nq, q, qsurf, psurf, 0, 0) 853 tname(1:nq)=nametmp(1:nq) 854 noms(1:nq)=nametmp(1:nq) 855 endif ! tracer and photochem 840 856 841 857
Note: See TracChangeset
for help on using the changeset viewer.