Changeset 1789 for trunk/LMDZ.TITAN/libf/phytitan
- Timestamp:
- Sep 28, 2017, 3:43:23 PM (7 years ago)
- Location:
- trunk/LMDZ.TITAN/libf/phytitan
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.TITAN/libf/phytitan/phyetat0_mod.F90
r1722 r1789 8 8 ngrid,nlayer,fichnom,tab0,Lmodif,nsoil,nq, & 9 9 day_ini,time,tsurf,tsoil, & 10 emis,q2,qsurf )10 emis,q2,qsurf,tankCH4) 11 11 12 12 ! to use 'getin_p' … … 44 44 real,intent(out) :: q2(ngrid,nlayer+1) ! 45 45 real,intent(out) :: qsurf(ngrid,nq) ! tracers on surface 46 real,intent(out) :: tankCH4(ngrid) ! depth of CH4 tank 46 47 47 48 !====================================================================== … … 217 218 write(*,*) "phyetat0: Surface emissivity <emis> range:", & 218 219 minval(emis), maxval(emis) 220 221 ! Depth of methane tank (added by JVO 2017) 222 if (startphy_file) then 223 call get_field("tankCH4",tankCH4,found,indextime) 224 if (.not.found) then 225 write(*,*) "phyetat0: Failed loading <tankCH4>" 226 ! call abort 227 tankCH4(:)=2. 228 endif 229 else 230 tankCH4(:)=2. 231 endif ! of if (startphy_file) 232 write(*,*) "phyetat0: Depth of methane tank <tankCH4> range:", & 233 minval(tankCH4), maxval(tankCH4) 219 234 220 235 ! pbl wind variance -
trunk/LMDZ.TITAN/libf/phytitan/phyredem.F90
r1647 r1789 135 135 136 136 subroutine physdem1(filename,nsoil,ngrid,nlay,nq, & 137 phystep,time,tsurf,tsoil,emis,q2,qsurf )137 phystep,time,tsurf,tsoil,emis,q2,qsurf,tankCH4) 138 138 ! write time-dependent variable to restart file 139 139 use iostart, only : open_restartphy, close_restartphy, & … … 155 155 real,intent(in) :: q2(ngrid,nlay+1) 156 156 real,intent(in) :: qsurf(ngrid,nq) 157 real,intent(in) :: tankCH4(ngrid) 157 158 158 159 integer :: iq … … 176 177 ! Planetary Boundary Layer 177 178 call put_field("q2","pbl wind variance",q2) 179 180 ! Methane tank depth 181 call put_field("tankCH4","Depth of methane tank",tankCH4) 178 182 179 183 ! tracers -
trunk/LMDZ.TITAN/libf/phytitan/physiq_mod.F90
r1788 r1789 375 375 !$OMP THREADPRIVATE(dycchi,qysat,nomqy) 376 376 377 real,dimension(:),allocatable,save :: tankCH4 ! Depth of surface methane tank 378 !$OMP THREADPRIVATE(tankCH4) 379 377 380 !----------------------------------------------------------------------------- 378 381 … … 402 405 ALLOCATE(qsurf(ngrid,nq)) 403 406 ALLOCATE(q2(ngrid,nlayer+1)) 407 ALLOCATE(tankCH4(ngrid)) 404 408 ALLOCATE(ztprevious(ngrid,nlayer)) 405 409 ALLOCATE(zuprevious(ngrid,nlayer)) … … 448 452 ! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 449 453 call phyetat0(startphy_file,ngrid,nlayer,"startfi.nc",0,0,nsoilmx,nq, & 450 day_ini,time_phys,tsurf,tsoil,emis,q2,qsurf )454 day_ini,time_phys,tsurf,tsoil,emis,q2,qsurf,tankCH4) 451 455 if (.not.startphy_file) then 452 456 ! additionnal "academic" initialization of physics … … 1241 1245 call physdem1("restartfi.nc",nsoilmx,ngrid,nlayer,nq, & 1242 1246 ptimestep,ztime_fin, & 1243 tsurf,tsoil,emis,q2,qsurf_hist )1247 tsurf,tsoil,emis,q2,qsurf_hist,tankCH4) 1244 1248 endif 1245 1249
Note: See TracChangeset
for help on using the changeset viewer.