Changeset 3705 for trunk/LMDZ.COMMON
- Timestamp:
- Apr 2, 2025, 7:20:52 AM (3 months ago)
- Location:
- trunk/LMDZ.COMMON/libf/evolution
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/changelog.txt
r3703 r3705 627 627 == 1/4/2025 == EV 628 628 updating paramaters to work with the layering 629 630 == 2/4/2025 == EV 631 updating 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 111 111 use comvert_mod, only: ap, bp 112 112 use writerestart1D_mod, only: writerestart1D 113 ! use layering_mod, only: layering, array2stratif, nb_str_max, layering_algo 113 114 #endif 114 115 … … 1082 1083 write(*,*) '> Reconstructing perennial ice and frost for the PCM' 1083 1084 watercap = 0. 1084 perennial_co2ice = co2_ice1085 perennial_co2ice =sum(stratif(ig,islope)%top%co2ice_volfrac*stratif(ig,islope)%top%thickness*subslope_dist(ig,:)/cos(pi*def_slope_mean(:)/180.)) 1085 1086 do ig = 1,ngrid 1086 1087 ! 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) then1088 h2o_ice(ig,:) = h2o_ice(ig,:) + qsurf(ig,igcm_h2o_ice,:) - metam_h2oice_threshold1089 qsurf(ig,igcm_h2o_ice,:) = metam_h2oice_threshold1090 endif1088 !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 1091 1092 1092 1093 ! 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 1095 1097 watercaptag(ig) = .true. 1096 1098 else 1097 1099 ! There too little ice to be considered as an infinite reservoir so ice is transferred to the frost 1098 1100 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.)) 1100 1105 h2o_ice(ig,:) = 0. 1101 1106 endif 1102 1107 1103 1108 ! 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) then1105 perennial_co2ice(ig,:) = perennial_co2ice(ig,:) + qsurf(ig,igcm_co2,:) - metam_co2ice_threshold1106 qsurf(ig,igcm_co2,:) = metam_co2ice_threshold1107 endif1109 !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 1108 1113 enddo 1109 1114
Note: See TracChangeset
for help on using the changeset viewer.