Ignore:
Timestamp:
May 6, 2015, 12:14:12 PM (10 years ago)
Author:
ymipsl
Message:

Reorganize geometry and grid modules. Prepare physics for unstructutured grid support. Simplify initialization of physics from dynamic.
Compiled only with dynd3dmem, but not tested for moment.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/carbon_cycle_mod.F90

    r3817 r3825  
    8686
    8787    USE dimphy
    88     USE comgeomphy
     88    USE geometry_mod, ONLY : cell_area
    8989    USE mod_phys_lmdz_transfert_para
    9090    USE infotrac_phy
     
    289289! 5) Calculate total area of the earth surface
    290290! --------------------------------------------
    291     CALL reduce_sum(SUM(airephy),airetot)
     291    CALL reduce_sum(SUM(cell_area),airetot)
    292292    CALL bcast(airetot)
    293293
     
    308308    USE phys_cal_mod, ONLY : mth_cur, mth_len
    309309    USE phys_cal_mod, ONLY : day_cur
    310     USE comgeomphy
    311310    USE indice_sol_mod
    312311    USE inifis_mod, ONLY: lunout
     312    USE geometry_mod, ONLY : cell_area
    313313
    314314    IMPLICIT NONE
     
    443443
    444444          ! Calculate a global mean value of delta CO2 flux
    445           fco2_tmp(1:klon) = fco2_tmp(1:klon) * airephy(1:klon)
     445          fco2_tmp(1:klon) = fco2_tmp(1:klon) * cell_area(1:klon)
    446446          CALL reduce_sum(SUM(fco2_tmp),sumtmp)
    447447          CALL bcast(sumtmp)
Note: See TracChangeset for help on using the changeset viewer.