Changeset 2887
- Timestamp:
- Feb 1, 2023, 9:34:37 AM (22 months ago)
- Location:
- trunk/LMDZ.MARS/libf/phymars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/comsoil_h.F90
r2616 r2887 25 25 real,save,allocatable :: beta(:,:) ! beta_k coefficients 26 26 real,save :: mu 27 real,save,allocatable :: flux_geo(:) ! Geothermal Flux (W/m^2) 27 28 28 !$OMP THREADPRIVATE(tsoil,mthermdiff,thermdiff,coefq,coefd,alph,beta,mu 29 !$OMP THREADPRIVATE(tsoil,mthermdiff,thermdiff,coefq,coefd,alph,beta,mu,flux_geo) 29 30 30 31 contains … … 47 48 allocate(alph(ngrid,nsoilmx-1)) 48 49 allocate(beta(ngrid,nsoilmx-1)) 49 50 allocate(flux_geo(ngrid)) 50 51 51 52 end subroutine ini_comsoil_h … … 66 67 if (allocated(alph)) deallocate(alph) 67 68 if (allocated(beta)) deallocate(beta) 68 69 if (allocated(flux_geo)) deallocate(flux_geo) 69 70 end subroutine end_comsoil_h 70 71 -
trunk/LMDZ.MARS/libf/phymars/phyetat0_mod.F90
r2884 r2887 24 24 use dust_param_mod, only: dustscaling_mode 25 25 USE ioipsl_getin_p_mod, ONLY : getin_p 26 26 use comsoil_h, only: flux_geo 27 27 implicit none 28 28 … … 644 644 ! as well as thermal inertia and volumetric heat capacity 645 645 call soil_settings(nid_start,ngrid,nsoil,tsurf,tsoil,indextime) 646 else 647 flux_geo(:) = 0. 646 648 endif ! of if (startphy_file) 647 649 -
trunk/LMDZ.MARS/libf/phymars/phyredem.F90
r2884 r2887 162 162 use dust_rad_adjust_mod, only: dust_rad_adjust_prev,dust_rad_adjust_next 163 163 use dust_param_mod, only: dustscaling_mode 164 164 use comsoil_h,only: flux_geo 165 165 implicit none 166 166 … … 314 314 endif 315 315 316 317 ! Geothermal Flux 318 call put_field('flux_geo','Geothermal flux',flux_geo,time) 316 319 ! Close file 317 320 call close_restartphy -
trunk/LMDZ.MARS/libf/phymars/physiq_mod.F
r2880 r2887 3598 3598 3599 3599 ! Write soil temperature 3600 !call writediagsoil(ngrid,"soiltemp","Soil temperature","K",3601 !& 3,tsoil)3600 call writediagsoil(ngrid,"soiltemp","Soil temperature","K", 3601 & 3,tsoil) 3602 3602 ! Write surface temperature 3603 3603 ! call writediagsoil(ngrid,"tsurf","Surface temperature","K", … … 3628 3628 c CALL writeg1d(ngrid,nlayer,pv,'v','m.s-1') 3629 3629 c CALL writeg1d(ngrid,nlayer,pw,'w','m.s-1') 3630 call writediagsoil(ngrid,"soiltemp","Soil temperature","K", 3631 & 3,tsoil) 3630 3632 3631 3633 ! THERMALS STUFF 1D … … 3977 3979 & log(zplay(1,nlayer)/zplay(1,nlayer-1))* 3978 3980 & rnew(1,nlayer)*tmean/g 3981 3982 3979 3983 #endif 3980 3984 -
trunk/LMDZ.MARS/libf/phymars/soil.F
r1268 r2887 6 6 use comsoil_h, only: layer, mlayer, volcapa, 7 7 & mthermdiff, thermdiff, coefq, 8 & coefd, alph, beta, mu 8 & coefd, alph, beta, mu,flux_geo 9 9 use surfdat_h, only: watercaptag, inert_h2o_ice 10 10 … … 141 141 do ig=1,ngrid 142 142 beta(ig,nsoil-1)=coefq(nsoil-1)*tsoil(ig,nsoil) 143 & /(coefq(nsoil-1)+coefd(ig,nsoil-1)) 143 & /(coefq(nsoil-1)+coefd(ig,nsoil-1)) 144 & +flux_geo(ig)/(coefq(nsoil-1) + coefd(ig,nsoil-1)) 144 145 enddo 146 145 147 ! Other layers 146 148 do ik=nsoil-2,1,-1 -
trunk/LMDZ.MARS/libf/phymars/soil_settings.F
r2818 r2887 2 2 3 3 ! use netcdf 4 use comsoil_h, only: layer, mlayer, inertiedat, volcapa 4 use comsoil_h, only: layer, mlayer, inertiedat, volcapa,flux_geo 5 5 use iostart, only: inquire_field_ndims, get_var, get_field, 6 6 & inquire_field, inquire_dimension_length … … 435 435 deallocate(oldtsoil) 436 436 endif ! of if (interpol) 437 438 ! 6. Report min and max values of soil temperatures and thermal inertias 437 438 439 440 ! 6. Load Geothermal Flux 441 ! ---------------------------------------------------------------------- 442 443 444 call get_field("flux_geo",flux_geo,found,timeindex=indextime) 445 if (.not.found) then 446 write(*,*) "soil_settings: Failed loading <flux_geo>" 447 write(*,*) "soil_settings: Will put <flux_geo> to 0." 448 flux_geo(:) = 0. 449 endif 450 451 452 453 ! 7. Report min and max values of soil temperatures and thermal inertias 439 454 ! ---------------------------------------------------------------------- 440 455
Note: See TracChangeset
for help on using the changeset viewer.