Changeset 3705 for trunk/LMDZ.COMMON


Ignore:
Timestamp:
Apr 2, 2025, 7:20:52 AM (3 months ago)
Author:
evos
Message:

Changing the PEM h2o and co2 ice values to follow the top layer in the stratum

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

Legend:

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

    r3703 r3705  
    627627== 1/4/2025 == EV
    628628updating paramaters to work with the layering
     629
     630== 2/4/2025 == EV
     631updating the h2o and co2 ice values that will be used by the PCM according to the top layer in the stratum
     632
  • trunk/LMDZ.COMMON/libf/evolution/pem.F90

    r3680 r3705  
    111111    use comvert_mod,              only: ap, bp
    112112    use writerestart1D_mod,       only: writerestart1D
     113   ! use layering_mod,             only: layering, array2stratif, nb_str_max, layering_algo
    113114#endif
    114115
     
    10821083write(*,*) '> Reconstructing perennial ice and frost for the PCM'
    10831084watercap = 0.
    1084 perennial_co2ice = co2_ice
     1085perennial_co2ice =sum(stratif(ig,islope)%top%co2ice_volfrac*stratif(ig,islope)%top%thickness*subslope_dist(ig,:)/cos(pi*def_slope_mean(:)/180.))
    10851086do ig = 1,ngrid
    10861087    ! H2O ice metamorphism
    1087     if (metam_h2oice .and. sum(qsurf(ig,igcm_h2o_ice,:)*subslope_dist(ig,:)/cos(pi*def_slope_mean(:)/180.)) > metam_h2oice_threshold) then
    1088         h2o_ice(ig,:) = h2o_ice(ig,:) + qsurf(ig,igcm_h2o_ice,:) - metam_h2oice_threshold
    1089         qsurf(ig,igcm_h2o_ice,:) = metam_h2oice_threshold
    1090     endif
     1088    !if (metam_h2oice .and. sum(qsurf(ig,igcm_h2o_ice,:)*subslope_dist(ig,:)/cos(pi*def_slope_mean(:)/180.)) > metam_h2oice_threshold) then
     1089    !    h2o_ice(ig,:) = h2o_ice(ig,:) + qsurf(ig,igcm_h2o_ice,:) - metam_h2oice_threshold
     1090    !    qsurf(ig,igcm_h2o_ice,:) = metam_h2oice_threshold
     1091    !endif
    10911092
    10921093    ! Is H2O ice still considered as an infinite reservoir for the PCM?
    1093     if (sum(h2o_ice(ig,:)*subslope_dist(ig,:)/cos(pi*def_slope_mean(:)/180.)) > inf_h2oice_threshold) then
    1094         ! There is enough ice to be considered as an infinite reservoir
     1094    !if (sum(h2o_ice(ig,:)*subslope_dist(ig,:)/cos(pi*def_slope_mean(:)/180.)) > inf_h2oice_threshold) then
     1095    if (sum(stratif(ig,islope)%top%h2oice_volfrac*stratif(ig,islope)%top%thickness*subslope_dist(ig,:)/cos(pi*def_slope_mean(:)/180.)) > inf_h2oice_threshold) then   
     1096       ! There is enough ice to be considered as an infinite reservoir
    10951097        watercaptag(ig) = .true.
    10961098    else
    10971099        ! There too little ice to be considered as an infinite reservoir so ice is transferred to the frost
    10981100        watercaptag(ig) = .false.
    1099         qsurf(ig,igcm_h2o_ice,:) = qsurf(ig,igcm_h2o_ice,:) + h2o_ice(ig,:)
     1101
     1102       ! qsurf(ig,igcm_h2o_ice,:) = qsurf(ig,igcm_h2o_ice,:) + h2o_ice(ig,:)
     1103
     1104       qsurf(ig,igcm_h2o_ice,:) = qsurf(ig,igcm_h2o_ice,:) + sum(stratif(ig,islope)%top%h2oice_volfrac*stratif(ig,islope)%top%thickness*subslope_dist(ig,:)/cos(pi*def_slope_mean(:)/180.))
    11001105        h2o_ice(ig,:) = 0.
    11011106    endif
    11021107
    11031108    ! CO2 ice metamorphism
    1104     if (metam_co2ice .and. sum(qsurf(ig,igcm_co2,:)*subslope_dist(ig,:)/cos(pi*def_slope_mean(:)/180.)) > metam_co2ice_threshold) then
    1105         perennial_co2ice(ig,:) = perennial_co2ice(ig,:) + qsurf(ig,igcm_co2,:) - metam_co2ice_threshold
    1106         qsurf(ig,igcm_co2,:) = metam_co2ice_threshold
    1107     endif
     1109    !if (metam_co2ice .and. sum(qsurf(ig,igcm_co2,:)*subslope_dist(ig,:)/cos(pi*def_slope_mean(:)/180.)) > metam_co2ice_threshold) then
     1110    !    perennial_co2ice(ig,:) = perennial_co2ice(ig,:) + qsurf(ig,igcm_co2,:) - metam_co2ice_threshold
     1111    !    qsurf(ig,igcm_co2,:) = metam_co2ice_threshold
     1112    !endif
    11081113enddo
    11091114
Note: See TracChangeset for help on using the changeset viewer.