Changeset 3983 for trunk/LMDZ.COMMON/libf/evolution/pemetat0.F90
- Timestamp:
- Dec 8, 2025, 11:27:43 AM (7 days ago)
- File:
-
- 1 edited
-
trunk/LMDZ.COMMON/libf/evolution/pemetat0.F90 (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/pemetat0.F90
r3981 r3983 25 25 use glaciers_mod, only: rho_co2ice, rho_h2oice 26 26 use comcstfi_h, only: r, mugaz, pi 27 use surfdat_h, only: watercaptag, perennial_co2ice 27 use surfdat_h, only: watercaptag, perennial_co2ice, qsurf 28 use metamorphism, only: frost4PCM, iPCM_h2ofrost, iPCM_co2frost 28 29 29 30 implicit none … … 80 81 !!! 4. Mass of CO2 & H2O adsorbed 81 82 !!! 82 !!! /!\ This order must be respected !83 !!! /!\ This order must be respected! 83 84 !!! Author: LL 84 85 !!! … … 102 103 103 104 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 104 ! h2oice105 h2o_ice = 0.105 ! H2O ice 106 h2o_ice(:,:) = 0. 106 107 call get_field("h2o_ice",h2o_ice,found) 107 108 if (.not. found) then … … 110 111 write(*,*)'with default value ''ini_huge_h2oice''' 111 112 do ig = 1,ngrid 112 if (watercaptag(ig)) h2o_ice(ig,:) = ini_huge_h2oice 113 if (watercaptag(ig)) h2o_ice(ig,:) = ini_huge_h2oice + qsurf(ig,iPCM_h2ofrost,:) - frost4PCM(ig,:)%h2o 113 114 enddo 114 115 endif 115 116 116 ! co2 ice117 co2_ice = 0.117 ! CO2 ice 118 co2_ice(:,:) = 0. 118 119 call get_field("co2_ice",co2_ice,found) 119 120 if (.not. found) then 120 121 write(*,*)'Pemetat0: failed loading <co2_ice>' 121 122 write(*,*)'will reconstruct the values from perennial_co2ice' 122 co2_ice = perennial_co2ice123 co2_ice(:,:) = perennial_co2ice(:,:) + qsurf(:,iPCM_co2frost,:) - frost4PCM(:,:)%co2 123 124 endif 124 125 … … 208 209 delta = depth_breccia 209 210 TI_PEM(ig,index_breccia + 1,islope) = sqrt((layer_PEM(index_breccia + 1) - layer_PEM(index_breccia))/ & 210 (((delta - layer_PEM(index_breccia))/(TI_PEM(ig,index_breccia,islope)**2)) + &211 ((layer_PEM(index_breccia + 1) - delta)/(TI_breccia**2))))212 do iloop =index_breccia + 2,index_bedrock211 (((delta - layer_PEM(index_breccia))/(TI_PEM(ig,index_breccia,islope)**2)) + & 212 ((layer_PEM(index_breccia + 1) - delta)/(TI_breccia**2)))) 213 do iloop = index_breccia + 2,index_bedrock 213 214 TI_PEM(ig,iloop,islope) = TI_breccia 214 215 enddo … … 246 247 do ig = 1,ngrid 247 248 if (inertiedat_PEM(ig,index_breccia) < TI_breccia) then 248 inertiedat_PEM(ig,index_breccia + 1) = sqrt((layer_PEM(index_breccia +1)-layer_PEM(index_breccia))/ &249 (((delta-layer_PEM(index_breccia))/(inertiedat(ig,index_breccia)**2)) + &250 ((layer_PEM(index_breccia+1)-delta)/(TI_breccia**2))))249 inertiedat_PEM(ig,index_breccia + 1) = sqrt((layer_PEM(index_breccia + 1) - layer_PEM(index_breccia))/ & 250 (((delta - layer_PEM(index_breccia))/(inertiedat(ig,index_breccia)**2)) + & 251 ((layer_PEM(index_breccia + 1) - delta)/(TI_breccia**2)))) 251 252 252 253 do iloop = index_breccia + 2,index_bedrock … … 254 255 enddo 255 256 else 256 do iloop =index_breccia + 1,index_bedrock257 do iloop = index_breccia + 1,index_bedrock 257 258 inertiedat_PEM(ig,iloop) = inertiedat_PEM(ig,nsoil_PCM) 258 259 enddo … … 263 264 delta = depth_bedrock 264 265 do ig = 1,ngrid 265 inertiedat_PEM(ig,index_bedrock + 1) = sqrt((layer_PEM(index_bedrock +1)-layer_PEM(index_bedrock))/ &266 (((delta-layer_PEM(index_bedrock))/(inertiedat_PEM(ig,index_bedrock)**2))+ &267 ((layer_PEM(index_bedrock+1)-delta)/(TI_bedrock**2))))268 enddo 269 270 do iloop = index_bedrock + 2, nsoil_PEM266 inertiedat_PEM(ig,index_bedrock + 1) = sqrt((layer_PEM(index_bedrock + 1) - layer_PEM(index_bedrock))/ & 267 (((delta - layer_PEM(index_bedrock))/(inertiedat_PEM(ig,index_bedrock)**2))+ & 268 ((layer_PEM(index_bedrock + 1) - delta)/(TI_bedrock**2)))) 269 enddo 270 271 do iloop = index_bedrock + 2,nsoil_PEM 271 272 do ig = 1,ngrid 272 273 inertiedat_PEM(ig,iloop) = TI_bedrock … … 365 366 366 367 ! h2o ice 367 h2o_ice = 0.368 h2o_ice(:,:) = 0. 368 369 write(*,*)'So ''h2o_ice'' is initialized with default value ''ini_huge_h2oice'' where ''watercaptag'' is true.' 369 370 do ig = 1,ngrid 370 if (watercaptag(ig)) h2o_ice(ig,:) = ini_huge_h2oice 371 if (watercaptag(ig)) h2o_ice(ig,:) = ini_huge_h2oice + qsurf(ig,iPCM_h2ofrost,:) - frost4PCM(ig,:)%h2o 371 372 enddo 372 373 373 374 ! co2 ice 374 375 write(*,*)'So ''co2_ice'' is initialized with ''perennial_co2ice'' found in the PCM.' 375 co2_ice = perennial_co2ice376 co2_ice(:,:) = perennial_co2ice(:,:) + qsurf(:,iPCM_co2frost,:) - frost4PCM(:,:)%co2 376 377 377 378 ! Layerings
Note: See TracChangeset
for help on using the changeset viewer.
