Changeset 2919


Ignore:
Timestamp:
Mar 22, 2023, 5:37:37 PM (21 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
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/evolution/pem.F90

    r2918 r2919  
    858858
    859859      if (co2glaciersflow) then
    860        call co2glaciers_evol(timelen,ngrid,nslope,iflat,subslope_dist,def_slope_mean,vmr_co2_pem_phys,ps_phys_timeseries,&
     860       call co2glaciers_evol(timelen,ngrid,nslope,iflat,subslope_dist,def_slope_mean,vmr_co2_pem_phys,ps_timeseries,&
    861861                         global_ave_press_GCM,global_ave_press_new,co2ice_slope,flag_co2flow,flag_co2flow_mesh)
    862862      endif
  • 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.