Changeset 4298 for LMDZ6/trunk/libf/phylmdiso
- Timestamp:
- Oct 17, 2022, 10:15:06 AM (2 years ago)
- Location:
- LMDZ6/trunk/libf/phylmdiso
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmdiso/phyetat0.F90
r4170 r4298 33 33 USE infotrac_phy, ONLY: nqtot, nbtr, types_trac, tracers 34 34 USE traclmdz_mod, ONLY: traclmdz_from_restart 35 USE carbon_cycle_mod, ONLY: carbon_cycle_ tr, carbon_cycle_cpl, co2_send35 USE carbon_cycle_mod, ONLY: carbon_cycle_init, carbon_cycle_cpl, carbon_cycle_tr, carbon_cycle_rad, co2_send, RCO2_glo 36 36 USE indice_sol_mod, ONLY: nbsrf, is_ter, epsfra, is_lic, is_oce, is_sic 37 37 USE ocean_slab_mod, ONLY: nslay, tslab, seaice, tice, ocean_slab_init … … 134 134 135 135 ! co2_ppm : value from the previous time step 136 137 ! co2_ppm0 : initial value of atmospheric CO2 (from create_etat0_limit.e .def) 138 co2_ppm0 = 284.32 139 ! when no initial value is available e.g., from a restart 140 ! this variable must be set in a .def file which will then be 141 ! used by the conf_phys_m.F90 routine. 142 ! co2_ppm0 = 284.32 (illustrative example on how to set the variable in .def 143 ! file, for a pre-industrial CO2 concentration value) 144 136 145 IF (carbon_cycle_tr .OR. carbon_cycle_cpl) THEN 137 146 co2_ppm = tab_cntrl(3) 138 147 RCO2 = co2_ppm * 1.0e-06 * RMCO2 / RMD 148 IF (tab_cntrl(17) > 0. .AND. carbon_cycle_rad) THEN 149 RCO2_glo = tab_cntrl(17) 150 ELSE 151 RCO2_glo = co2_ppm0 * 1.0e-06 * RMCO2 / RMD 152 ENDIF 139 153 ! ELSE : keep value from .def 140 154 ENDIF 141 142 ! co2_ppm0 : initial value of atmospheric CO2 (from create_etat0_limit.e .def)143 ! co2_ppm0 = tab_cntrl(16)144 ! initial value for interactive CO2 run when there is no tracer field for CO2 in restart145 co2_ppm0=284.32146 155 147 156 solaire_etat0 = tab_cntrl(4) … … 166 175 clesphy0(7)=tab_cntrl( 11 ) 167 176 clesphy0(8)=tab_cntrl( 12 ) 177 clesphy0(9)=tab_cntrl( 17 ) 168 178 169 179 ! set time iteration … … 473 483 ALLOCATE(co2_send(klon), stat=ierr) 474 484 IF (ierr /= 0) CALL abort_physic('phyetat0', 'pb allocation co2_send', 1) 475 found=phyetat0_get(1,co2_send,"co2_send","co2 send",co2_ppm )485 found=phyetat0_get(1,co2_send,"co2_send","co2 send",co2_ppm0) 476 486 ENDIF 477 487 ELSE IF (ANY(types_trac == 'lmdz')) THEN -
LMDZ6/trunk/libf/phylmdiso/phyredem.F90
r4170 r4298 45 45 #endif 46 46 #endif 47 USE carbon_cycle_mod, ONLY : carbon_cycle_cpl, co2_send 47 USE carbon_cycle_mod, ONLY : carbon_cycle_cpl, co2_send, carbon_cycle_rad, RCO2_glo 48 48 USE indice_sol_mod, ONLY: nbsrf, is_oce, is_sic, is_ter, is_lic, epsfra 49 49 USE surface_data, ONLY: type_ocean, version_ocean … … 130 130 131 131 ! co2_ppm0 : initial value of atmospheric CO2 132 tab_cntrl(16) = co2_ppm0 132 ! tab_cntrl(16) = co2_ppm0 133 134 ! PC -- initial value of RCO2 for the radiation scheme 135 ! tab_cntrl(17) = co2_ppm * 1.0e-06 * RMCO2 / RMD 136 IF (carbon_cycle_rad) tab_cntrl(17) = RCO2_glo 137 !PRINT*, "PC : phyredem RCO2_glo =",RCO2_glo 133 138 134 139 DO pass=1,2 ! pass=1 netcdf definition ; pass=2 netcdf write -
LMDZ6/trunk/libf/phylmdiso/physiq_mod.F90
r4234 r4298 5497 5497 ! 5498 5498 !--interactive CO2 in ppm from carbon cycle 5499 IF (carbon_cycle_rad.AND..NOT.debut) THEN 5500 RCO2=RCO2_glo 5501 ENDIF 5499 IF (carbon_cycle_rad) RCO2=RCO2_glo 5502 5500 ! 5503 5501 IF (prt_level .GE.10) THEN
Note: See TracChangeset
for help on using the changeset viewer.