Changeset 3610 for trunk/LMDZ.COMMON/libf/evolution/recomp_tend_mod.F90
- Timestamp:
- Feb 5, 2025, 3:06:50 PM (9 hours ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/recomp_tend_mod.F90
r3609 r3610 1 MODULE recomp_tend_ co2_mod1 MODULE recomp_tend_mod 2 2 3 3 implicit none … … 16 16 !======================================================================= 17 17 ! 18 ! To compute the evolution of the tendenc iefor co2 ice18 ! To compute the evolution of the tendency for co2 ice 19 19 ! 20 20 !======================================================================= … … 61 61 !======================================================================= 62 62 63 SUBROUTINE recomp_tend_h2o(ngrid,nslope,timelen,d_h2oice,PCM_temp,PEM_temp) 63 SUBROUTINE recomp_tend_h2o(icetable_depth_old,icetable_depth_new,tsurf,tsoil_PEM_timeseries_old,tsoil_PEM_timeseries_new,d_h2oice) 64 65 use compute_soiltemp_mod, only: itp_tsoil 66 use fast_subs_mars, only: psv 64 67 65 68 implicit none … … 67 70 !======================================================================= 68 71 ! 69 ! To compute the evolution of the tendenc iefor h2o ice72 ! To compute the evolution of the tendency for h2o ice 70 73 ! 71 74 !======================================================================= … … 73 76 ! Inputs 74 77 ! ------ 75 integer, intent(in) :: timelen, ngrid, nslope 76 real, dimension(: ), intent(in) :: PCM_temp, PEM_temp78 real, intent(in) :: icetable_depth_old, icetable_depth_new, tsurf 79 real, dimension(:,:), intent(in) :: tsoil_PEM_timeseries_old, tsoil_PEM_timeseries_new 77 80 ! Outputs 78 81 ! ------- 79 real, dimension(ngrid,nslope), intent(inout) :: d_h2oice ! physical point field:Evolution of perennial ice over one year82 real, intent(inout) :: d_h2oice ! Evolution of perennial ice over one year 80 83 81 84 ! Local: 82 85 ! ------ 86 real :: Rz_old, Rz_new, R_dec, hum_dec, psv_max_old, psv_max_new 87 integer :: t 88 real, parameter :: coef_diff = 4.e-4 ! Diffusion coefficient 89 real, parameter :: zcdv = 0.0325 ! Drag coefficient 83 90 84 write(*,*) " Update ofthe H2O tendency due to lag layer"91 write(*,*) "> Updating the H2O tendency due to lag layer" 85 92 86 ! Flux correction due to lag layer 87 !~ Rz_old = h2oice_depth_old*0.0325/4.e-4 ! resistance from PCM 88 !~ Rz_new = h2oice_depth_new*0.0325/4.e-4 ! new resistance based on new depth 89 !~ R_dec = (1./Rz_old)/(1./Rz_new) ! decrease because of resistance 90 !~ soil_psv_old = psv(max(PCM_temp(h2oice_depth_old))) ! the maxmimum annual mean saturation vapor pressure at the temperature of the GCM run temperature at the old ice location 91 !~ soil_psv_new = psv(max(PEM_temp(h2oice_depth_new))) ! the maxmimum annual mean saturation vapor pressure at the temperature of the PEM run temperature at the new ice location 92 !~ hum_dec = soil_psv_old/soil_psv_new ! decrease because of lower water vapor pressure at the new depth 93 !~ d_h2oice = d_h2oice*R_dec*hum_dec ! decrease of flux 93 ! Higher resistance due to growing lag layer (higher depth) 94 Rz_old = icetable_depth_old*zcdv/coef_diff ! Old resistance from PCM 95 Rz_new = icetable_depth_new*zcdv/coef_diff ! New resistance based on new depth 96 R_dec = Rz_new/Rz_old ! Decrease because of resistance 97 98 ! The maxmimum of the daily averages over one year for the saturation vapor pressure at the ice table location 99 psv_max_old = 0. 100 psv_max_new = 0. 101 do t = 1,size(tsoil_PEM_timeseries_old,2) 102 psv_max_old = max(psv_max_old,psv(itp_tsoil(tsoil_PEM_timeseries_old(:,t),tsurf,icetable_depth_old))) 103 psv_max_new = max(psv_max_new,psv(itp_tsoil(tsoil_PEM_timeseries_new(:,t),tsurf,icetable_depth_new))) 104 enddo 105 106 ! Lower humidity due to growing lag layer (higher depth) 107 hum_dec = psv_max_old/psv_max_new ! Decrease because of lower water vapor pressure at the new depth 108 109 ! Flux correction (decrease) 110 d_h2oice = d_h2oice*R_dec*hum_dec 94 111 95 112 END SUBROUTINE recomp_tend_h2o 96 113 97 END MODULE recomp_tend_ co2_mod114 END MODULE recomp_tend_mod
Note: See TracChangeset
for help on using the changeset viewer.