Ignore:
Timestamp:
Mar 21, 2026, 7:18:46 PM (3 weeks ago)
Author:
Laurent Fairhead
Message:
  1. SZ98 interpolation (Sheng and Zwiers, Climate Dynamics (1998)

Mean-preserving linear interpolation of monthly boundary conditions to daily values

  1. Concentration-Driven mode

Prescribed atmospheric CO2 concentrations without atmospheric CO2 transport

  1. CO2 Fossil fuel emissions

Reading of monthly or daily emissions with SZ98 interpolation when needed

  1. Flux corrections

Implementation of scalar (1D) ans spatially varying (2D) carbon flux corrections for piControl simulations.

PCadule

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/pbl_surface_subsrf_mod.F90

    r6053 r6116  
    175175! fluxlat_tersrf--output-R- latent heat flux of continental sub-surfaces
    176176    USE carbon_cycle_mod,   ONLY : carbon_cycle_cpl 
    177     USE carbon_cycle_mod,   ONLY : co2_send, nbcf_out, fields_out, yfields_out
     177    USE carbon_cycle_mod,   ONLY : co2_send, nbcf_out, fields_out, yfields_out, yfields_in
    178178    use hbtm_mod, only: hbtm
    179179    USE indice_sol_mod
     
    800800!ORCHIDEE grid and as such should be defined in yfields_in(knon,nbcf_in) but the
    801801!knon variable is not known at that level of pbl_surface_mod
    802   yfields_out(:,:) = 0.
     802  IF (ALLOCATED(yfields_out)) yfields_out(:,:) = 0.
     803  IF (ALLOCATED(yfields_in))  yfields_in(:,:) = 0.
     804! >> PC
    803805
    804806  ypphi = 0.0 
     
    891893#endif
    892894       ENDDO
     895! >> PC
    893896!--compressing fields_out onto ORCHIDEE grid
    894 !--these fields are shared and used directly surf_land_orchidee_mod
    895        DO n = 1, nbcf_out
    896          DO j = 1, knon
    897            i = ni(j)
    898            yfields_out(j,n) = fields_out(i,n)
    899          ENDDO
    900        ENDDO
     897!--these fields are shared and used directly in surf_land_orchidee_mod
     898        IF (nbcf_out > 0 .AND. ALLOCATED(yfields_out) .AND. ALLOCATED(fields_out)) THEN
     899           DO n = 1, nbcf_out
     900              DO j = 1, knon
     901                 i = ni(j)
     902                 yfields_out(j,n) = fields_out(i,n)
     903              ENDDO
     904           ENDDO
     905        END IF
     906! << PC
     907
    901908
    902909       DO k = 1, klev
Note: See TracChangeset for help on using the changeset viewer.