Ignore:
Timestamp:
Mar 23, 2021, 4:14:07 PM (3 years ago)
Author:
lmdz-users
Message:

Modifications from Thibaut to create an ESM with interactive CO2 + INCA aerosols

File:
1 edited

Legend:

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

    r3857 r3865  
    4545  LOGICAL, PUBLIC :: read_fco2_ocean_cor    ! flag to read corrective oceanic CO2 flux
    4646!$OMP THREADPRIVATE(read_fco2_ocean_cor) 
    47   REAL, PUBLIC :: var_fco2_ocean_cor        ! corrective oceanic CO2 flux
     47  REAL, SAVE, PUBLIC :: var_fco2_ocean_cor        ! corrective oceanic CO2 flux
    4848!$OMP THREADPRIVATE(var_fco2_ocean_cor)
    49   REAL, PUBLIC :: ocean_area_tot            ! total oceanic area to convert flux
     49  REAL, SAVE, PUBLIC :: ocean_area_tot            ! total oceanic area to convert flux
    5050!$OMP THREADPRIVATE(ocean_area_tot)
    5151  LOGICAL, PUBLIC :: read_fco2_land_cor     ! flag to read corrective land CO2 flux
    5252!$OMP THREADPRIVATE(read_fco2_land_cor) 
    53   REAL, PUBLIC :: var_fco2_land_cor         ! corrective land CO2 flux
     53  REAL, SAVE, PUBLIC :: var_fco2_land_cor         ! corrective land CO2 flux
    5454!$OMP THREADPRIVATE(var_fco2_land_cor)
    55   REAL, PUBLIC :: land_area_tot             ! total land area to convert flux
     55  REAL, SAVE, PUBLIC :: land_area_tot             ! total land area to convert flux
    5656!$OMP THREADPRIVATE(land_area_tot)
    5757
     
    108108  REAL, DIMENSION(:), ALLOCATABLE, PUBLIC :: fco2_ocean ! Net flux from ocean [kgCO2/m2/s]
    109109!$OMP THREADPRIVATE(fco2_ocean)
    110   REAL, DIMENSION(:), ALLOCATABLE, PUBLIC :: fco2_ocean_cor ! Net corrective flux from ocean [kgCO2/m2/s]
     110  REAL, DIMENSION(:), ALLOCATABLE, SAVE, PUBLIC :: fco2_ocean_cor ! Net corrective flux from ocean [kgCO2/m2/s]
    111111!$OMP THREADPRIVATE(fco2_ocean_cor)
    112   REAL, DIMENSION(:), ALLOCATABLE, PUBLIC :: fco2_land_cor  ! Net corrective flux from land [kgCO2/m2/s]
     112  REAL, DIMENSION(:), ALLOCATABLE, SAVE, PUBLIC :: fco2_land_cor  ! Net corrective flux from land [kgCO2/m2/s]
    113113!$OMP THREADPRIVATE(fco2_land_cor)
    114114
     
    123123
    124124! Calculated co2 field to be send to the ocean via the coupler and to ORCHIDEE
    125   REAL, DIMENSION(:), ALLOCATABLE, PUBLIC :: co2_send ! Field allocated in phyetat0
     125  REAL, DIMENSION(:), ALLOCATABLE, SAVE, PUBLIC :: co2_send ! Field allocated in phyetat0
    126126!$OMP THREADPRIVATE(co2_send)
    127127
Note: See TracChangeset for help on using the changeset viewer.