Changeset 2285 for trunk/LMDZ.MARS/libf/phymars
- Timestamp:
- Apr 14, 2020, 10:41:14 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/physiq_mod.F
r2282 r2285 36 36 & igcm_topdust_number 37 37 use comsoil_h, only: inertiedat, ! soil thermal inertia 38 & tsoil, nsoilmx ! number of subsurface layers 38 & tsoil, nsoilmx,!number of subsurface layers 39 & mlayer,layer ! soil mid layer depths 39 40 use geometry_mod, only: longitude, latitude, cell_area, 40 41 & longitude_deg … … 479 480 REAL hsummit(ngrid) 480 481 482 c when no startfi file is asked for init 483 real alpha,lay1 ! coefficients for building layers 484 integer iloop 485 481 486 ! LOGICAL startphy_file 482 487 … … 517 522 & mem_Mccn_co2,mem_Nccn_co2, 518 523 & mem_Mh2o_co2,watercap) 524 519 525 520 526 #else … … 541 547 ! starting without startfi.nc and with callsoil 542 548 ! is not yet possible as soildepth default is not defined 543 if (callsoil) then 544 call abort_physic("physiq","callsoil option is not", 545 & "yet available without startfi",1) 549 if (callsoil) then 550 ! default mlayer distribution, following a power law: 551 ! mlayer(k)=lay1*alpha**(k-1/2) 552 lay1=2.e-4 553 alpha=2 554 do iloop=0,nsoilmx-1 555 mlayer(iloop)=lay1*(alpha**(iloop-0.5)) 556 enddo 557 lay1=sqrt(mlayer(0)*mlayer(1)) 558 alpha=mlayer(1)/mlayer(0) 559 do iloop=1,nsoilmx 560 layer(iloop)=lay1*(alpha**(iloop-1)) 561 enddo 546 562 endif 547 563 ! additionnal "academic" initialization of physics … … 558 574 endif 559 575 #endif 560 561 576 if (pday.ne.day_ini) then 562 577 write(*,*) "PHYSIQ: ERROR: bad synchronization between ",
Note: See TracChangeset
for help on using the changeset viewer.