Changeset 1889 for trunk/LMDZ.TITAN/libf/dynphy_lonlat
- Timestamp:
- Jan 9, 2018, 12:26:53 PM (7 years ago)
- Location:
- trunk/LMDZ.TITAN/libf/dynphy_lonlat/phytitan
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.TITAN/libf/dynphy_lonlat/phytitan/lect_start_archive.F
r1647 r1889 5 5 6 6 ! USE surfdat_h 7 USE comchem_h, ONLY: nlaykimold, preskimold 7 8 USE comsoil_h, ONLY: nsoilmx, layer, mlayer, volcapa, inertiedat 8 9 USE infotrac, ONLY: tname, nqtot … … 46 47 c------------------------------------ 47 48 INTEGER imold,jmold,lmold,nsoilold,nqold 48 49 49 50 50 c Variables pour les lectures des fichiers "ini" … … 147 147 real, dimension(:,:), allocatable :: emisold 148 148 real, dimension(:,:,:,:), allocatable :: qold 149 149 150 150 real tab_cntrl(100) 151 151 … … 158 158 logical :: therminertia_3D=.true. ! flag 159 159 ! therminertia_3D=.true. if thermal inertia is 3D and read from datafile 160 160 161 c Variable intermediaires iutilise pour l'extrapolation verticale 161 162 c---------------------------------------------------------------- … … 247 248 endif 248 249 249 250 250 if (nsoilold.ne.nsoilmx) then ! interpolation will be required 251 251 depthinterpol=.true. 252 252 endif 253 254 ! 1.2.2 find out the # of upper chemistry layers 255 256 ierr= NF_INQ_DIMID(nid,"upper_chemistry_layers",dimid) 257 ierr= NF_INQ_DIMLEN(nid,dimid,nlaykimold) 258 259 ! NB : The regriding, if needed cannot be done here since the new 260 ! pressure grid is only computed at the end of newstart 253 261 254 262 ! 1.3 Report dimensions … … 266 274 write(*,*) ' Otherwise, set nsoilmx -in dimphys.h- to: ',nsoilold 267 275 endif 276 write(*,*) "upper_chemistry_layers: ",nlaykimold 268 277 write(*,*) "time lenght: ",timelen 269 278 write(*,*) … … 295 304 allocate(mlayerold(nsoilold)) 296 305 allocate(qsurfold(imold+1,jmold+1,nqtot)) 306 307 allocate(preskimold(nlaykimold)) 297 308 298 309 allocate(var (imold+1,jmold+1,llm)) … … 512 523 endif 513 524 endif 514 515 c----------------------------------------------------------------------- 516 c 3.6 Lecture geopotentiel au sol 525 526 c----------------------------------------------------------------------- 527 c 3.6 Read upper chemistry mid-layer pressure 528 c----------------------------------------------------------------------- 529 530 ierr=NF_INQ_VARID(nid,"preskim",nvarid) 531 IF (ierr .NE. NF_NOERR) THEN 532 PRINT*, "lect_start_archive: Le champ <preskim> est absent" 533 CALL abort 534 ENDIF 535 #ifdef NC_DOUBLE 536 ierr = NF_GET_VAR_DOUBLE(nid, nvarid, preskimold) 537 #else 538 ierr = NF_GET_VAR_REAL(nid, nvarid, preskimold) 539 #endif 540 IF (ierr .NE. NF_NOERR) THEN 541 PRINT*, "lect_start_archive: Lecture echouee pour <preskim>" 542 CALL abort 543 ENDIF 544 545 c----------------------------------------------------------------------- 546 c 3.7 Lecture geopotentiel au sol 517 547 c----------------------------------------------------------------------- 518 548 c -
trunk/LMDZ.TITAN/libf/dynphy_lonlat/phytitan/newstart.F
r1871 r1889 17 17 & is_master 18 18 use infotrac, only: infotrac_init, nqtot, tname 19 USE comchem_h, ONLY: nlaykim_up, nlaykimold 19 20 USE comsoil_h, ONLY: nsoilmx, layer, mlayer, inertiedat 20 21 USE surfdat_h, ONLY: phisfi, albedodat, … … 130 131 real tab_cntrl(100) 131 132 real tab_cntrl_bis(100) 132 133 133 134 c variables diverses 134 135 c------------------- … … 258 259 259 260 endif 260 261 261 262 262 c======================================================================= … … 536 536 CALL lect_start_archive(ngridmx,llm, 537 537 & date,tsurf,tsoil,emis,q2, 538 & t,ucov,vcov,ps,teta,phisold_newgrid, q,qsurf,539 & surfith,nid)538 & t,ucov,vcov,ps,teta,phisold_newgrid, 539 & q,qsurf,surfith,nid) 540 540 write(*,*) "OK, read start_archive file" 541 541 ! copy soil thermal inertia … … 572 572 write(*,*) 'q=x : give a specific uniform value to one tracer' 573 573 write(*,*) 'q=profile : specify a profile for a tracer' 574 ! write(*,*) 'ini_q : tracers initialisation for chemistry, water an575 ! $d ice '576 ! write(*,*) 'ini_q-H2O : tracers initialisation for chemistry and577 ! $ice '578 ! write(*,*) 'ini_q-iceH2O : tracers initialisation for chemistry on579 ! $ly '580 574 write(*,*) 'isotherm : Isothermal Temperatures, wind set to zero' 581 575 write(*,*) 'radequi : Earth-like radiative equilibrium temperature … … 1071 1065 CALL inifilr 1072 1066 CALL pression(ip1jmp1, ap, bp, ps, p3d) 1067 1068 1069 c========================================================================= 1070 c Calcul de la dimension verticale pour la chimie - JVO 2017 1071 c start_archive seulement, la grille verticale pouvant avoir ete modifiee 1072 c========================================================================== 1073 1074 IF (choix_1.eq.0) THEN 1075 1076 ! Calculate the # of upper chemistry layers with the "new" pressure grid 1077 ! For this we use Vervack profile for upper atmosphere with dz=10km 1078 1079 CALL gr_kim_vervack 1080 1081 WRITE(*,*) 1082 WRITE(*,*) " With the compiled vertical grid we found :" 1083 WRITE(*,*) " Number of upper chemistry layers =", nlaykim_up 1084 1085 ! Regriding is then done, if needed 1086 1087 IF (nlaykimold.ne.nlaykim_up) THEN 1088 1089 WRITE(*,*) " Warning, nlaykimold=", nlaykimold 1090 WRITE(*,*) ' which implies that a regriding on upper chemistry 1091 & will be performed.' 1092 WRITE(*,*) 1093 1094 ! CALL regrid_kim 1095 1096 ENDIF 1097 1098 endif ! of if (choix_1.eq.0) 1099 1073 1100 1074 1101 c----------------------------------------------------------------------- … … 1125 1152 day_ini=int(date) 1126 1153 endif 1154 1127 1155 c 1128 1156 CALL geopot ( ip1jmp1, teta , pk , pks, phis , phi )
Note: See TracChangeset
for help on using the changeset viewer.