Changeset 3328 for trunk


Ignore:
Timestamp:
May 15, 2024, 6:51:20 PM (6 months ago)
Author:
llange
Message:

PEM

  • Remove a wrong line which modified the initial surface sublimating during

the main time loop

  • Cleaning the previous cleaning commit (rage pas JB)

LL

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

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/evolution/changelog.txt

    r3327 r3328  
    307307- Correction of the computation for the change of sublimating ice necessary to the stopping criteria (the mistake was introduced in r3149) + simplification of the algorithm + renaming of variables with more explicit names;
    308308- Cleaning of "soil_thermalproperties_mod.F90".
     309
     310== 15/05/2024 == LL
     311- Remove a wrong line which modified the  initial surface sublimating during
     312the main time loop
     313- Cleaning the previous cleaning commit.
     314
  • trunk/LMDZ.COMMON/libf/evolution/ice_table_mod.F90

    r3327 r3328  
    178178do ig = 1,ngrid
    179179    do islope = 1,nslope
    180         print*, ig, islope, ice_table_depth(ig,islope)
    181180        call compute_Tice_pem(nsoil_PEM,tsoil(ig,:,islope),tsurf(ig,islope),ice_table_depth(ig,islope),Tice(ig,islope))
    182181        rho(ig,islope) = -3.5353e-4*Tice(ig,islope)**2 + 0.0351* Tice(ig,islope) + 933.5030 ! Rottgers, 2012
  • trunk/LMDZ.COMMON/libf/evolution/pem.F90

    r3327 r3328  
    223223real                                  :: totmassh2o_adsorbded               ! Total mass of H2O that is exchanged because of adsorption / desoprtion over the planets [kg]
    224224logical                               :: bool_sublim                        ! logical to check if there is sublimation or not
     225logical, dimension(:,:),  allocatable :: co2ice_has_disappeared             ! logical to check if a co2ice reservoir has already disappeared at a previous timestep
    225226real, dimension(:,:),     allocatable :: porefillingice_thickness_prev_iter ! ngrid x nslope: Thickness of the ice table at the previous iteration [m]
    226227real, dimension(:),       allocatable :: delta_h2o_icetablesublim           ! ngrid x Total mass of the H2O that has sublimated / condenses from the ice table [kg]
     
    496497allocate(watersoil_density_PEM_timeseries(ngrid,nsoilmx_PEM,nslope,timelen))
    497498allocate(delta_co2_adsorbded(ngrid))
     499allocate(co2ice_has_disappeared(ngrid,nslope))
    498500allocate(porefillingice_thickness_prev_iter(ngrid,nslope))
    499501allocate(delta_h2o_icetablesublim(ngrid))
     
    564566ini_co2ice_sublim = .false.
    565567ini_h2oice_sublim = .false.
     568co2ice_has_disappeared(:,:) = .false.
    566569do i = 1,ngrid
    567570    Total_surface = Total_surface + cell_area(i)
     
    789792    do ig = 1,ngrid
    790793        do islope = 1,nslope
    791             if (co2_ice_ini(ig,islope) > 0. .and. co2_ice(ig,islope) < 1.e-10) then ! co2 ice disappeared, look for closest point without co2ice
     794            if (co2_ice_ini(ig,islope) > 0. .and. co2_ice(ig,islope) < 1.e-10 .and. (.not.(co2ice_has_disappeared(ig,islope)))) then ! co2 ice disappeared, look for closest point without co2ice
     795                co2ice_has_disappeared(ig,islope) = .true.
    792796                if (latitude_deg(ig) > 0) then
    793797                    do ig_loop = ig,ngrid
     
    813817                    enddo
    814818                endif
    815                 co2_ice_ini(ig,islope) = 0.
    816819                if ((co2_ice(ig,islope) < 1.e-10) .and. (h2o_ice(ig,islope) > frost_albedo_threshold)) then
    817820                    albedo(ig,1,islope) = albedo_h2o_frost
     
    832835                enddo
    833836                tsurf_ave(ig,islope) = ave/timelen
    834                 ! set the surface albedo to be the ice albedo
    835 !                if (latitude_deg(ig) > 0) then
    836 !                   icap = 1
    837 !                else
    838 !                   icap = 2
    839 !                endif
    840 !                albedo(ig,1,islope) = albedice(icap)
    841 !                albedo(ig,2,islope) = albedice(icap)
    842 !                emis(ig,islope) = emisice(icap)
    843837            endif
    844838        enddo
Note: See TracChangeset for help on using the changeset viewer.