Changeset 3649 for LMDZ6/trunk
- Timestamp:
- Mar 17, 2020, 12:41:16 PM (5 years ago)
- Location:
- LMDZ6/trunk/libf/phylmd
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/carbon_cycle_mod.F90
r3581 r3649 201 201 202 202 SUBROUTINE carbon_cycle_init() 203 ! This subroutine is called from traclmdz_init, only at first timestep. 204 ! - Read controle parameters from .def input file 205 ! - Search for carbon tracers and set default values 206 ! - Allocate variables 207 ! - Test for compatibility 203 ! This subroutine is called from tracco2i_init, which is called from phytrac_init only at first timestep. 204 ! - Allocate variables. These variables must be allocated before first call to phys_output_write in physiq. 208 205 209 206 USE dimphy -
LMDZ6/trunk/libf/phylmd/phytrac_mod.F90
r3531 r3649 56 56 SUBROUTINE phytrac_init() 57 57 USE dimphy 58 USE infotrac_phy, ONLY: nbtr 58 USE infotrac_phy, ONLY: nbtr, type_trac 59 USE tracco2i_mod, ONLY: tracco2i_init 59 60 IMPLICIT NONE 60 61 … … 70 71 ALLOCATE(d_tr_th(klon,klev,nbtr)) 71 72 ALLOCATE(d_tr_lessi_impa(klon,klev,nbtr),d_tr_lessi_nucl(klon,klev,nbtr)) 73 74 75 76 !=============================================================================== 77 ! -- Do specific treatment according to chemestry model or local LMDZ tracers 78 ! 79 !=============================================================================== 80 SELECT CASE(type_trac) 81 CASE('co2i') 82 ! -- CO2 interactif -- 83 CALL tracco2i_init() 84 END SELECT 85 72 86 73 87 END SUBROUTINE phytrac_init -
LMDZ6/trunk/libf/phylmd/tracco2i_mod.F90
r3581 r3649 14 14 CONTAINS 15 15 16 SUBROUTINE tracco2i_init() 17 ! This subroutine calls carbon_cycle_init needed to be done before first call to phys_output_write in physiq. 18 USE carbon_cycle_mod, ONLY: carbon_cycle_init, carbon_cycle_cpl 19 20 ! Initialize carbon_cycle_mod 21 IF (carbon_cycle_cpl) THEN 22 CALL carbon_cycle_init() 23 ENDIF 24 25 END SUBROUTINE tracco2i_init 26 16 27 SUBROUTINE tracco2i(pdtphys, debutphy, & 17 28 xlat, xlon, pphis, pphi, & … … 21 32 USE infotrac_phy 22 33 USE geometry_mod, ONLY: cell_area 23 USE carbon_cycle_mod, ONLY: carbon_cycle_init24 34 USE carbon_cycle_mod, ONLY: id_CO2, nbcf_in, fields_in, cfname_in 25 35 USE carbon_cycle_mod, ONLY: fco2_ocn_day, fco2_ff, fco2_bb, fco2_land, fco2_ocean … … 79 89 !--convert 280 ppm into kg CO2 / kg air 80 90 IF (debutphy) THEN 81 82 ! Initialisation de module carbon_cycle_mod83 IF (carbon_cycle_cpl) THEN84 CALL carbon_cycle_init()85 ENDIF86 91 87 92 ! Initialisation de tr_seri(id_CO2) si pas initialise
Note: See TracChangeset
for help on using the changeset viewer.