Changeset 2835 for trunk/LMDZ.COMMON/libf/evolution/update_soil.F90
- Timestamp:
- Nov 30, 2022, 11:29:29 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/update_soil.F90
r2794 r2835 1 SUBROUTINE update_soil(ngrid,nslope,nsoil_PEM,tend_h2oglaciers,tend_co2glaciers,co2ice,waterice,ps_new,& 2 cellarea,ice_depth,TI_PEM) 3 1 SUBROUTINE update_soil(ngrid,nslope,nsoil_PEM,tend_h2oglaciers,tend_co2glaciers,co2ice,waterice,p_avg_new,& 2 ice_depth,TI_PEM) 4 3 5 4 USE comsoil_h, only: inertiedat, volcapa … … 10 9 INTEGER,INTENT(IN) :: ngrid, nslope, nsoil_PEM 11 10 REAL,INTENT(IN) :: tend_h2oglaciers(ngrid,nslope),tend_co2glaciers(ngrid,nslope) 12 REAL,INTENT(IN) :: ps_new(ngrid) 13 REAL,INTENT(IN) :: cellarea(ngrid) 11 REAL,INTENT(IN) :: p_avg_new 14 12 REAL,INTENT(IN) :: co2ice(ngrid,nslope) 15 13 REAL,INTENT(IN) :: waterice(ngrid,nslope) 16 14 REAL,INTENT(in) :: ice_depth(ngrid,nslope) 17 18 15 19 16 ! Outputs: … … 44 41 REAL :: regolith_inertia(ngrid,nslope) ! TI of the regolith 45 42 REAL :: d(ngrid,nsoil_PEM,nslope) 46 REAL :: p_avg_new47 43 REAL :: Total_surface 48 44 INTEGER :: ispermanent_co2glaciers(ngrid,nslope) 49 45 INTEGER :: ispermanent_h2oglaciers(ngrid,nslope) 50 46 51 52 47 ! 0. Initialisation 53 54 55 56 57 Total_surface = sum(cellarea)58 p_avg_new = 0.59 do ig = 1,ngrid60 p_avg_new = p_avg_new + ps_new(ig)*cellarea(ig)/Total_surface61 enddo62 63 64 48 65 49 do ig = 1,ngrid … … 80 64 enddo 81 65 82 83 66 ispermanent_co2glaciers(:,:) = 0 84 67 ispermanent_h2oglaciers(:,:) = 0 85 68 86 87 69 ! 1.Ice TI feedback 88 70 89 ! do ig=1,ngrid90 ! do islope=1,nslope91 ! if ((ispermanent_co2glaciers(ig,islope).eq.1).or.(ispermanent_h2oglaciers(ig,islope).eq.1)) then92 ! do iloop = 1,n_1km93 ! TI_PEM(ig,iloop,islope) = surfaceice_inertia94 ! enddo95 ! endif96 ! enddo97 ! enddo98 71 do islope = 1,nslope 99 72 call soil_TIfeedback_PEM(ngrid,nsoil_PEM,waterice(:,islope), TI_PEM(:,:,islope)) … … 101 74 102 75 ! 2. Modification of the regolith thermal inertia. 103 104 105 76 106 77 do ig=1,ngrid … … 115 86 enddo 116 87 enddo 117 118 119 120 121 122 88 123 89 ! 3. Build new TI for the PEM … … 142 108 exit 143 109 endif 144 145 110 enddo 146 147 148 111 149 112 ! 4.2 Build the new ti … … 173 136 enddo !ig 174 137 175 176 177 178 179 180 181 138 !======================================================================= 182 139 RETURN
Note: See TracChangeset
for help on using the changeset viewer.