Changeset 1120 for trunk/LMDZ.TITAN/libf
- Timestamp:
- Dec 3, 2013, 3:05:40 PM (11 years ago)
- Location:
- trunk/LMDZ.TITAN/libf/phytitan
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.TITAN/libf/phytitan/clesphys.h
r1056 r1120 10 10 LOGICAL ok_orodr,ok_orolf,ok_gw_nonoro 11 11 INTEGER nbapp_rad, nbapp_chim, iflag_con, iflag_ajs 12 REAL ecri tphy12 REAL ecriphy 13 13 INTEGER lev_histmth, lev_histday 14 14 REAL solaire … … 39 39 40 40 COMMON/clesphys_r/ & 41 & ecri tphy, solaire, z0, lmixmin, ksta, inertie, emis,&41 & ecriphy, solaire, z0, lmixmin, ksta, inertie, emis, & 42 42 & tx,tcorrect,p_prodaer,xnuf,xvis,xir 43 43 -
trunk/LMDZ.TITAN/libf/phytitan/conf_phys.F90
r1056 r1120 139 139 !Config en jours. 140 140 ! 141 ecri tphy = 1.142 CALL getin('ecritphy', ecri tphy)141 ecriphy = 1. 142 CALL getin('ecritphy', ecriphy) 143 143 ! 144 144 !Config Key = if_ebil … … 479 479 write(numout,*)' Sortie journaliere = ', ok_journe 480 480 write(numout,*)' Sortie instantanee = ', ok_instan 481 write(numout,*)' frequence sorties = ', ecri tphy481 write(numout,*)' frequence sorties = ', ecriphy 482 482 write(numout,*)' Sortie bilan d energie, if_ebil =', if_ebil 483 483 write(numout,*)' Duree de l annee = ',year_day -
trunk/LMDZ.TITAN/libf/phytitan/physiq.F
r1072 r1120 591 591 ENDIF 592 592 593 ecrit_ins = NINT(RDAY/dtime*ecri tphy) ! Fraction de jour reglable593 ecrit_ins = NINT(RDAY/dtime*ecriphy) ! Fraction de jour reglable 594 594 IF (ok_instan) THEN 595 595 WRITE(lunout,*)'La frequence de sortie instant. est de ', -
trunk/LMDZ.TITAN/libf/phytitan/rcm1d.F
r1056 r1120 4 4 use control_mod 5 5 use comgeomphy 6 USE phys_state_var_mod 6 7 use cpdet_mod, only: ini_cpdet 7 8 IMPLICIT NONE … … 22 23 c 23 24 c======================================================================= 24 25 c Version TITAN a tester et verifier26 c - verifier pour Ls...27 c - faire un profile.F ...28 25 29 26 #include "dimensions.h" … … 52 49 REAL play(llm) ! Pressure at the middle of the layers (Pa) 53 50 REAL plev(llm+1) ! intermediate pressure levels (pa) 54 REAL psurf ,tsurf(1)51 REAL psurf 55 52 REAL u(llm),v(llm) ! zonal, meridional wind 56 53 REAL gru,grv ! prescribed "geostrophic" background wind 57 54 REAL temp(llm) ! temperature at the middle of the layers 58 55 REAL,allocatable :: q(:,:) ! tracer mixing ratio (e.g. kg/kg) 59 REAL tsoil(nsoilmx) ! subsurface soik temperature (K)60 56 REAL zlay(llm) ! altitude estimee dans les couches (km) 61 57 REAL long(1),lati(1),area(1) 62 58 REAL cufi(1),cvfi(1) 63 REAL phisfi(1),albedo(1) 64 REAL solsw(1),sollwdown(1),dlw(1),radsol(1) 65 REAL zmea(1), zstd(1) 66 REAL zsig(1), zgam(1), zthe(1) 67 REAL zpic(1), zval(1) 59 REAL phisfi(1) 68 60 69 61 c Physical and dynamical tandencies (e.g. m.s-2, K/s, Pa/s) … … 85 77 COMMON/cpdetvenus/cppdyn,nu_venus,t0_venus 86 78 REAL cppdyn,nu_venus,t0_venus 87 real pi88 79 89 80 c======================================================================= … … 168 159 c print*,nbapp_rad 169 160 c LU DANS PHYSIQ.DEF... 170 nbapp_rad = 10 .161 nbapp_rad = 100. 171 162 172 163 PRINT *,'nombre de jours simules ?' … … 176 167 ndt=ndt*day_step 177 168 dtphys=daysec/day_step 178 dtime=dtphys179 169 180 170 c Pression de surface sur la planete … … 196 186 long(1)=0.E+0 197 187 198 c Initialisation albedo199 c ----------------------200 c ne sert pas ici...201 albedo(1)=0.3202 c PRINT *,'Albedo du sol nu ?'203 c READ(unit,*) albedo(1)204 c PRINT *,albedo(1)205 206 188 c Initialisation speciales "physiq" 207 189 c --------------------------------- … … 209 191 CALL init_phys_lmdz(iim,jjm,llm,1,(/1/)) 210 192 call initcomgeomphy 211 call infotrac_init212 193 call ini_cpdet 213 194 … … 271 252 pks=cpp*(psurf/preff)**rcp 272 253 254 c init des variables pour phyredem 255 c -------------------------------- 256 call phys_state_var_init 257 273 258 c profil de temperature et altitude au premier appel 274 259 c -------------------------------------------------- … … 289 274 print*," Pression Altitude Temperature" 290 275 ilayer=1 291 tsurf(1)=tmp3(0)276 ftsol(1)=tmp3(0) 292 277 temp(1)=tmp3(1) 293 278 zlay(1)=tmp3(1)*tmp1(1) 294 print*," 0", tsurf(1)279 print*," 0",ftsol(1) 295 280 print*,ilayer,play(ilayer),zlay(ilayer),temp(ilayer) 296 281 DO ilayer=2,nlayer … … 303 288 c ~~~~~~~~~~~~~~~~~~~~~~~ 304 289 DO isoil=1,nsoil 305 tsoil(isoil)=93.290 ftsoil(1,isoil)=ftsol(1) 306 291 ENDDO 307 292 … … 331 316 print*,'Ls=',zls*180./pi 332 317 318 c Initialisation albedo 319 c ---------------------- 320 321 falbe(1)=0.3 322 333 323 c Ecriture de "startphy.nc" 334 324 c ------------------------- … … 338 328 339 329 solsw(1) = 0. 340 sollw down(1)= 0.341 dlw(1)= 0.330 sollw(1) = 0. 331 fder(1) = 0. 342 332 radsol(1) = 0. 343 333 … … 345 335 soil_model = .true. 346 336 347 call phyredem("startphy.nc ", 348 . lati,long, 349 . tsurf,tsoil,albedo, 350 . solsw,sollwdown,dlw,radsol, 351 . zmea, zstd, zsig, zgam, zthe, zpic, zval, 352 . temp) 337 call phyredem("startphy.nc") 338 339 c deallocation des variables phyredem 340 c ----------------------------------- 341 call phys_state_var_end 353 342 354 343 c======================================================================= … … 463 452 464 453 OPEN(11,file='profile.new') 465 write (11,*) tsurf466 454 DO ilayer=1,nlayer 467 455 write (11,*) zlay(ilayer),temp(ilayer),tmp1(ilayer) … … 476 464 #include "../dyn3d/disvert_noterre.F" 477 465 #include "../dyn3d/abort_gcm.F" 478 !#include "../dyn3d/dump2d.F"479 480 c***********************************************************************481 function ssum(n,sx,incx)482 c483 IMPLICIT NONE484 c485 integer n,incx,i,ix486 real ssum,sx((n-1)*incx+1)487 c488 ssum=0.489 ix=1490 do 10 i=1,n491 ssum=ssum+sx(ix)492 ix=ix+incx493 10 continue494 c495 return496 end
Note: See TracChangeset
for help on using the changeset viewer.