Ignore:
Timestamp:
Aug 24, 2023, 4:46:03 PM (16 months ago)
Author:
llange
Message:

MARS PEM
Fix bug with albedo (wrong albedo for surface where co2 ice is) and add the porosity in the computation commited previously (missing)
LL

Location:
trunk/LMDZ.COMMON/libf/evolution
Files:
2 edited

Legend:

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

    r3031 r3032  
    149149    use comslope_mod, only: subslope_dist,def_slope_mean           
    150150    use comconst_mod,only: pi       
     151    use constants_marspem_mod,only:porosity
    151152    implicit none
    152153!   inputs
     
    201202   do ig = 1,ngrid
    202203      do islope = 1,nslope
    203         delta_m_h2o(ig)  = delta_m_h2o(ig) +  rho(ig,islope)*(new_ice_table_thickness(ig,islope) - former_ice_table_thickness(ig,islope)) & ! convention > 0. <=> it condenses 
     204        delta_m_h2o(ig)  = delta_m_h2o(ig) +  porosity*rho(ig,islope)*(new_ice_table_thickness(ig,islope) - former_ice_table_thickness(ig,islope)) & ! convention > 0. <=> it condenses 
    204205                           *subslope_dist(ig,islope)/cos(def_slope_mean(islope)*pi/180.)
    205206      enddo
  • trunk/LMDZ.COMMON/libf/evolution/pem.F90

    r3031 r3032  
    6565                                  albedodat, zmea, zstd, zsig, zgam, zthe,     &
    6666                                  hmons, summit, base,albedo_h2o_frost,        &
    67                                   frost_albedo_threshold, emissiv, watercaptag, perenial_co2ice
     67                                  frost_albedo_threshold, emissiv, watercaptag, perenial_co2ice, &
     68                                  emisice, albedice
    6869    use dimradmars_mod,     only: totcloudfrac, albedo
    6970    use dust_param_mod,     only: tauscaling
     
    7273    use planete_h,          only: aphelie, periheli, year_day, peri_day, obliquit
    7374    use comcstfi_h,         only: r, mugaz
     75    use paleoclimate_mod,   only: albedo_perenialco2
    7476#else
    7577    use tracer_h,           only: noms, igcm_h2o_ice, igcm_co2 ! Tracer names
     
    245247
    246248! Loop variables
    247 integer :: i, j, ig0, l, ig, nnq, t, islope, ig_loop, islope_loop, iloop, isoil
     249integer :: i, j, ig0, l, ig, nnq, t, islope, ig_loop, islope_loop, iloop, isoil,icap
    248250
    249251! Parallel variables
     
    843845                enddo
    844846                tsurf_ave(ig,islope) = ave/timelen
     847                ! set the surface albedo to be the ice albedo
     848                if (latitude_deg(ig) > 0) then
     849                   icap = 1
     850                else
     851                   icap = 2
     852                endif
     853                albedo(ig,1,islope) = albedice(icap)
     854                albedo(ig,2,islope) = albedice(icap)
     855                emis(ig,islope) = emisice(icap)
    845856            endif
    846857        enddo
     
    10421053            perenial_co2ice(ig,islope) = 0.5*qsurf(ig,igcm_co2,islope)
    10431054            qsurf(ig,igcm_co2,islope)  = 0.5*qsurf(ig,igcm_co2,islope)
     1055            albedo(ig,1,islope) = albedo_perenialco2
     1056            albedo(ig,2,islope) = albedo_perenialco2
    10441057        endif
    10451058    enddo
Note: See TracChangeset for help on using the changeset viewer.