- Timestamp:
- Nov 7, 2024, 2:48:08 PM (3 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/recomp_tend_co2_slope_mod.F90
r3381 r3498 7 7 !======================================================================= 8 8 9 SUBROUTINE recomp_tend_co2_slope(ngrid,nslope,timelen, tendencies_co2_ice_phys,tendencies_co2_ice_phys_ini,co2ice_slope,emissivity_slope, &9 SUBROUTINE recomp_tend_co2_slope(ngrid,nslope,timelen,d_co2ice_phys,d_co2ice_phys_ini,co2ice_slope,emissivity_slope, & 10 10 vmr_co2_PCM,vmr_co2_pem,ps_PCM_2,global_avg_press_PCM,global_avg_press_new) 11 11 … … 29 29 real, intent(in) :: global_avg_press_PCM ! global averaged pressure at previous timestep 30 30 real, intent(in) :: global_avg_press_new ! global averaged pressure at current timestep 31 real, dimension(ngrid,nslope), intent(in) :: tendencies_co2_ice_phys_ini ! physical point field: Evolution of perennial ice over one year31 real, dimension(ngrid,nslope), intent(in) :: d_co2ice_phys_ini ! physical point field: Evolution of perennial ice over one year 32 32 real, dimension(ngrid,nslope), intent(in) :: co2ice_slope ! CO2 ice per mesh and sub-grid slope (kg/m^2) 33 33 real, dimension(ngrid,nslope), intent(in) :: emissivity_slope ! Emissivity per mesh and sub-grid slope(1) 34 34 ! OUTPUT 35 real, dimension(ngrid,nslope), intent(inout) :: tendencies_co2_ice_phys ! physical point field: Evolution of perennial ice over one year35 real, dimension(ngrid,nslope), intent(inout) :: d_co2ice_phys ! physical point field: Evolution of perennial ice over one year 36 36 37 37 ! local: … … 47 47 coef = sols_per_my*sec_per_sol*emissivity_slope(i,islope)*sigmaB/Lco2 48 48 ave = 0. 49 if (co2ice_slope(i,islope) > 1.e-4 .and. abs( tendencies_co2_ice_phys(i,islope)) > 1.e-5) then49 if (co2ice_slope(i,islope) > 1.e-4 .and. abs(d_co2ice_phys(i,islope)) > 1.e-5) then 50 50 do t=1,timelen 51 51 ave = ave + (beta_clap_co2/(alpha_clap_co2-log(vmr_co2_PCM(i,t)*ps_PCM_2(i,t)/100.)))**4 & … … 53 53 enddo 54 54 if (ave < 1e-4) ave = 0. 55 tendencies_co2_ice_phys(i,islope) = tendencies_co2_ice_phys_ini(i,islope) - coef*ave/timelen55 d_co2ice_phys(i,islope) = d_co2ice_phys_ini(i,islope) - coef*ave/timelen 56 56 endif 57 57 enddo
Note: See TracChangeset
for help on using the changeset viewer.