Changeset 2919 for trunk/LMDZ.MARS


Ignore:
Timestamp:
Mar 22, 2023, 5:37:37 PM (20 months ago)
Author:
llange
Message:

PCM
Flux_geo is now correctled initialized (wasnot correctly read in the startfi) for the 3D and 1D
Minor fix in the pem (wrong name for a variable)
LL

Location:
trunk/LMDZ.MARS/libf/phymars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/comsoil_h.F90

    r2909 r2919  
    2525  real,save,allocatable :: beta(:,:,:)        ! beta_k coefficients
    2626  real,save :: mu
    27   real,save,allocatable :: flux_geo(:)       ! Geothermal Flux (W/m^2)
     27  real,save,allocatable :: flux_geo(:,:)       ! Geothermal Flux (W/m^2)
    2828
    2929!$OMP THREADPRIVATE(tsoil,mthermdiff,thermdiff,coefq,coefd,alph,beta,mu,flux_geo)
     
    4848    allocate(alph(ngrid,nsoilmx-1,nslope))
    4949    allocate(beta(ngrid,nsoilmx-1,nslope))
    50     allocate(flux_geo(ngrid))
     50    allocate(flux_geo(ngrid,nslope))
    5151 
    5252  end subroutine ini_comsoil_h
  • trunk/LMDZ.MARS/libf/phymars/dyn1d/testphys1d.F

    r2917 r2919  
    66      use mod_grid_phy_lmdz, only : regular_lonlat
    77      use infotrac, only: nqtot, tname, nqperes,nqfils
    8       use comsoil_h, only: volcapa, layer, mlayer, inertiedat, nsoilmx
     8      use comsoil_h, only: volcapa, layer, mlayer, inertiedat, nsoilmx,flux_geo
    99      use comgeomfi_h, only: sinlat, ini_fillgeom
    1010      use surfdat_h, only: albedodat, z0_default, emissiv, emisice,
     
    144144      logical :: present
    145145
     146c   LL: Subsurface geothermal flux
     147      real :: flux_geo_tmp
    146148c=======================================================================
    147149
     
    626628
    627629
     630
    628631! Initialize soil properties and temperature
    629632! ------------------------------------------
     
    634637      ENDDO
    635638
     639      call getin("flux_geo",flux_geo_tmp)
     640      flux_geo(:,:) = flux_geo_tmp
     641
     642
     643
     644
     645flux_geo
    636646! Initialize depths
    637647! -----------------
  • trunk/LMDZ.MARS/libf/phymars/phyetat0_mod.F90

    r2913 r2919  
    732732  call soil_settings(nid_start,ngrid,nsoil,tsurf,tsoil,indextime)
    733733else
    734     flux_geo(:) = 0.
     734    flux_geo(:,:) = 0.
    735735endif ! of if (startphy_file)
    736736
  • trunk/LMDZ.MARS/libf/phymars/soil.F

    r2900 r2919  
    161161        beta(ig,nsoil-1,islope)=coefq(nsoil-1)*tsoil(ig,nsoil,islope)
    162162     &      /(coefq(nsoil-1)+coefd(ig,nsoil-1,islope))
    163      &      +flux_geo(ig)/(coefq(nsoil-1) + coefd(ig,nsoil-1,islope))
     163     &      +flux_geo(ig,islope)/
     164     &      (coefq(nsoil-1) + coefd(ig,nsoil-1,islope))
    164165      enddo
    165166   
  • trunk/LMDZ.MARS/libf/phymars/soil_settings.F

    r2913 r2919  
    454454           write(*,*) "soil_settings: Failed loading <flux_geo>"
    455455           write(*,*) "soil_settings: Will put  <flux_geo> to 0."
    456            flux_geo(:) = 0.
     456           flux_geo(:,:) = 0.
    457457      endif
    458458
Note: See TracChangeset for help on using the changeset viewer.