Changeset 3549 for LMDZ6/trunk/libf
- Timestamp:
- Aug 5, 2019, 9:40:19 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/tracco2i_mod.F90
r3531 r3549 65 65 !--convert 280 ppm into kg CO2 / kg air 66 66 IF (debutphy) THEN 67 67 68 IF (MAXVAL(tr_seri(:,:,id_CO2)).LT.1.e-15) THEN 68 69 !!tr_seri(:,:,id_CO2)=280.e-6/RMD*RMCO2 69 70 tr_seri(:,:,id_CO2)=400.e-6/RMD*RMCO2 !--initialised to 400 ppm for a test 70 71 ENDIF 72 73 ALLOCATE(fco2_ff(klon)) 74 ALLOCATE(fco2_bb(klon)) 75 ALLOCATE(fco2_land(klon)) 76 ALLOCATE(fco2_ocean(klon)) 77 71 78 ENDIF 72 79 … … 87 94 fco2_ocean(:)=0.0 88 95 DO nb=1, nbcf_in 96 print *,'nb tracco2=', nb, cfname_in(nb) 89 97 !--fCO2_nep comes in unit of kg C m-2 s-1 90 98 !--converting to kg CO2 m-2 s-1 91 IF (cfname_in(nb) == "fCO2_n ep" ) fco2_land(:)=fields_in(:,nb)*RMCO2/RMC*pctsrf(:,is_ter)99 IF (cfname_in(nb) == "fCO2_nbp" ) fco2_land(:)=fields_in(:,nb)*RMCO2/RMC*pctsrf(:,is_ter) 92 100 !--fCO2_fgco2 comes in unit of mol C02 m-2 s-1 93 101 !--converting to kg CO2 m-2 s-1 + change sign … … 106 114 CALL gather(m_air,m_air_glo) 107 115 !$OMP MASTER 116 108 117 !--compute a global mean CO2 value and print its value in ppm 109 118 IF (is_mpi_root) THEN … … 138 147 USE netcdf, ONLY: nf90_get_var, nf90_noerr, nf90_nowrite 139 148 140 USE carbon_cycle_mod, ONLY : fco2_ff, fco2_bb 149 USE carbon_cycle_mod, ONLY : fco2_ff, fco2_bb, fco2_land, fco2_ocean 141 150 142 151 IMPLICIT NONE … … 259 268 PRINT *,'probleme avec le mois dans co2_ini =', mth_cur 260 269 ENDIF 261 IF (.NOT.ALLOCATED(fco2_ff)) ALLOCATE(fco2_ff(klon)) 262 IF (.NOT.ALLOCATED(fco2_bb)) ALLOCATE(fco2_bb(klon)) 270 263 271 fco2_ff(:) = flx_co2ff(:,mth_cur) 264 272 fco2_bb(:) = flx_co2bb(:,mth_cur)
Note: See TracChangeset
for help on using the changeset viewer.