Changeset 2320


Ignore:
Timestamp:
Jul 1, 2015, 3:57:32 PM (9 years ago)
Author:
Ehouarn Millour
Message:

Physics/dynamics separation: make an infotrac_phy module, which should be used from within the physics, and is initialized from infotrac (dynamics) via iniphysiq.
EM

Location:
LMDZ5/trunk/libf
Files:
2 added
34 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/dynlonlat_phylonlat/phydev/iniphysiq.F90

    r2311 r2320  
    1818                        rlond, & ! longitudes
    1919                        rlatd ! latitudes
     20  USE infotrac, ONLY: nqtot, type_trac
     21  USE infotrac_phy, ONLY: init_infotrac_phy
    2022!  USE comcstphy, ONLY: rradius, & ! planet radius (m)
    2123!                       rr, & ! recuced gas constant: R/molar mass of atm
     
    122124  ! Initialize physical constants in physics:
    123125  CALL inifis(prad,pg,pr,pcpp)
     126 
     127  ! Initialize tracer names, numbers, etc. for physics
     128  CALL init_infotrac_phy(nqtot,type_trac)
    124129
    125130  ! Now generate local lon/lat/cu/cv/area arrays
  • LMDZ5/trunk/libf/dynlonlat_phylonlat/phylmd/etat0phys_netcdf.F90

    r2302 r2320  
    8080!-------------------------------------------------------------------------------
    8181  USE control_mod
    82   USE infotrac
    8382  USE fonte_neige_mod
    8483  USE pbl_surface_mod
  • LMDZ5/trunk/libf/dynlonlat_phylonlat/phylmd/iniphysiq.F90

    r2315 r2320  
    1414                                klon_mpi_begin ! start indes of columns (on local mpi grid)
    1515  USE vertical_layers_mod, ONLY : init_vertical_layers
     16  USE infotrac, ONLY: nqtot,nqo,nbtr,tname,ttext,type_trac,&
     17                      niadv,conv_flg,pbl_flg,solsym,&
     18                      nqfils,nqdesc,nqdesc_tot,iqfils,iqpere,&
     19                      ok_isotopes,ok_iso_verif,ok_isotrac,&
     20                      ok_init_iso,niso_possibles,tnat,&
     21                      alpha_ideal,use_iso,iqiso,iso_num,&
     22                      iso_indnum,zone_num,phase_num,&
     23                      indnum_fn_num,index_trac,&
     24                      niso,ntraceurs_zone,ntraciso
    1625  USE comgeomphy, ONLY: initcomgeomphy, &
    1726                        airephy, & ! physics grid area (m2)
     
    2130                        rlatd ! latitudes
    2231  USE inifis_mod, ONLY: inifis
     32  USE infotrac_phy, ONLY: init_infotrac_phy
    2333  USE phyaqua_mod, ONLY: iniaqua
    2434  IMPLICIT NONE
     
    135145                            ap,bp,presnivs,pseudoalt)
    136146
     147  ! Initialize tracer names, numbers, etc. for physics
     148  CALL init_infotrac_phy(nqtot,nqo,nbtr,tname,ttext,type_trac,&
     149                         niadv,conv_flg,pbl_flg,solsym,&
     150                         nqfils,nqdesc,nqdesc_tot,iqfils,iqpere,&
     151                         ok_isotopes,ok_iso_verif,ok_isotrac,&
     152                         ok_init_iso,niso_possibles,tnat,&
     153                         alpha_ideal,use_iso,iqiso,iso_num,&
     154                         iso_indnum,zone_num,phase_num,&
     155                         indnum_fn_num,index_trac,&
     156                         niso,ntraceurs_zone,ntraciso)
     157
    137158  ! Now generate local lon/lat/cu/cv/area arrays
    138159  CALL initcomgeomphy
  • LMDZ5/trunk/libf/phydev/physiq.F90

    r2221 r2320  
    1111
    1212      USE dimphy, only : klon,klev
    13       USE infotrac, only : nqtot
     13      USE infotrac_phy, only : nqtot
    1414      USE comgeomphy, only : rlatd
    1515      USE comcstphy, only : rg
  • LMDZ5/trunk/libf/phylmd/carbon_cycle_mod.F90

    r2311 r2320  
    8888    USE comgeomphy
    8989    USE mod_phys_lmdz_transfert_para
    90     USE infotrac
     90    USE infotrac_phy, ONLY: nbtr, nqo, niadv, tname
    9191    USE IOIPSL
    9292    USE surface_data, ONLY : ok_veget, type_ocean
     
    304304! - Calculate CO2 flux to send to ocean and land models (PISCES and ORCHIDEE)
    305305
    306     USE infotrac
     306    USE infotrac_phy, ONLY: nbtr
    307307    USE dimphy
    308308    USE mod_phys_lmdz_transfert_para
  • LMDZ5/trunk/libf/phylmd/concvl.F90

    r2311 r2320  
    2929
    3030  USE dimphy
    31   USE infotrac, ONLY: nbtr
     31  USE infotrac_phy, ONLY: nbtr
    3232  USE phys_local_var_mod, ONLY: omega
    3333  USE print_control_mod, ONLY: prt_level, lunout
  • LMDZ5/trunk/libf/phylmd/conema3.F90

    r1992 r2320  
    88
    99  USE dimphy
    10   USE infotrac, ONLY: nbtr
     10  USE infotrac_phy, ONLY: nbtr
    1111  IMPLICIT NONE
    1212  ! ======================================================================
  • LMDZ5/trunk/libf/phylmd/conemav.F90

    r1992 r2320  
    88
    99  USE dimphy
    10   USE infotrac, ONLY: nbtr
     10  USE infotrac_phy, ONLY: nbtr
    1111  IMPLICIT NONE
    1212  ! ======================================================================
  • LMDZ5/trunk/libf/phylmd/convect3.F90

    r2197 r2320  
    1616  ! #################################################################
    1717  USE dimphy
    18   USE infotrac, ONLY: nbtr
     18  USE infotrac_phy, ONLY: nbtr
    1919  IMPLICIT NONE
    2020  include "dimensions.h"
  • LMDZ5/trunk/libf/phylmd/cvltr.F90

    r2007 r2320  
    1212  USE IOIPSL
    1313  USE dimphy
    14   USE infotrac, ONLY : nbtr,tname
     14  USE infotrac_phy, ONLY : nbtr,tname
    1515  IMPLICIT NONE
    1616!=====================================================================
  • LMDZ5/trunk/libf/phylmd/cvltr_noscav.F90

    r2007 r2320  
    44SUBROUTINE cvltr_noscav(it,pdtime,da, phi, mp,wght_cvfd,paprs,pplay,x,upd,dnd,dx)
    55  USE dimphy
    6   USE infotrac, ONLY : nbtr
     6  USE infotrac_phy, ONLY : nbtr
    77  IMPLICIT NONE
    88!=====================================================================
  • LMDZ5/trunk/libf/phylmd/cvltr_scav.F90

    r2284 r2320  
    1313  USE IOIPSL
    1414  USE dimphy
    15   USE infotrac, ONLY : nbtr,tname
     15  USE infotrac_phy, ONLY : nbtr,tname
    1616  IMPLICIT NONE
    1717  !=====================================================================
  • LMDZ5/trunk/libf/phylmd/cvltr_spl.F90

    r2147 r2320  
    1313  USE IOIPSL
    1414  USE dimphy
    15   USE infotrac, ONLY : nbtr,tname
     15  USE infotrac_phy, ONLY : nbtr,tname
    1616  IMPLICIT NONE
    1717!=====================================================================
  • LMDZ5/trunk/libf/phylmd/cvltrorig.F90

    r1907 r2320  
    44SUBROUTINE cvltrorig(it,pdtime,da, phi, mp,paprs,pplay,x,upd,dnd,dx)
    55  USE dimphy
    6   USE infotrac, ONLY : nbtr
     6  USE infotrac_phy, ONLY : nbtr
    77  IMPLICIT NONE
    88!=====================================================================
  • LMDZ5/trunk/libf/phylmd/init_be.F90

    r2311 r2320  
    66  USE dimphy
    77  USE comgeomphy
    8   USE infotrac, ONLY : nbtr
     8  USE infotrac_phy, ONLY : nbtr
    99  USE indice_sol_mod
    1010   
  • LMDZ5/trunk/libf/phylmd/init_phys_lmdz.F90

    r2239 r2320  
    66  USE mod_grid_phy_lmdz, ONLY: Init_grid_phy_lmdz, nbp_lev
    77  USE dimphy, ONLY : Init_dimphy
    8   USE infotrac, ONLY : type_trac
     8  USE infotrac_phy, ONLY : type_trac
    99#ifdef REPROBUS
    1010  USE CHEM_REP, ONLY : Init_chem_rep_phys
  • LMDZ5/trunk/libf/phylmd/initrrnpb.F90

    r1907 r2320  
    44SUBROUTINE  initrrnpb(ftsol,pctsrf,masktr,fshtr,hsoltr,tautr,vdeptr,scavtr)
    55  USE dimphy
    6   USE infotrac, ONLY : nbtr
     6  USE infotrac_phy, ONLY : nbtr
    77  USE traclmdz_mod, ONLY : id_rn, id_pb
    88  USE indice_sol_mod
  • LMDZ5/trunk/libf/phylmd/lsc_scav.F90

    r2284 r2320  
    1313  USE mod_phys_lmdz_para
    1414  USE traclmdz_mod
    15   USE infotrac,ONLY : nbtr
     15  USE infotrac_phy,ONLY : nbtr
    1616  USE comgeomphy
    1717  USE iophy
  • LMDZ5/trunk/libf/phylmd/phyetat0.F90

    r2311 r2320  
    2121       zstd, zthe, zval, ale_bl, ale_bl_trig, alp_bl
    2222  USE iostart, ONLY : close_startphy, get_field, get_var, open_startphy
    23   USE infotrac, only: nbtr, nqo, type_trac, tname, niadv
     23  USE infotrac_phy, only: nbtr, nqo, type_trac, tname, niadv
    2424  USE traclmdz_mod,    ONLY : traclmdz_from_restart
    2525  USE carbon_cycle_mod, ONLY : carbon_cycle_tr, carbon_cycle_cpl, co2_send
  • LMDZ5/trunk/libf/phylmd/phyredem.F90

    r2311 r2320  
    1414  USE iostart
    1515  USE traclmdz_mod, ONLY : traclmdz_to_restart
    16   USE infotrac
     16  USE infotrac_phy, ONLY: type_trac, niadv, tname, nbtr, nqo
    1717  USE control_mod
    1818  USE carbon_cycle_mod, ONLY : carbon_cycle_cpl, co2_send
  • LMDZ5/trunk/libf/phylmd/phys_local_var_mod.F90

    r2243 r2320  
    375375SUBROUTINE phys_local_var_init
    376376USE dimphy
    377 USE infotrac, ONLY : nbtr
     377USE infotrac_phy, ONLY : nbtr
    378378USE aero_mod
    379379USE indice_sol_mod
  • LMDZ5/trunk/libf/phylmd/phys_output_mod.F90

    r2315 r2320  
    3636    USE iophy
    3737    USE dimphy
    38     USE infotrac
     38    USE infotrac_phy, ONLY: nqtot, nqo, niadv, tname, ttext
    3939    USE ioipsl
    4040    USE phys_cal_mod, only : hour
  • LMDZ5/trunk/libf/phylmd/phys_output_write_mod.F90

    r2319 r2320  
    239239    USE pbl_surface_mod, only: snow
    240240    USE indice_sol_mod, only: nbsrf
    241     USE infotrac, only: nqtot, nqo, type_trac
     241    USE infotrac_phy, only: nqtot, nqo, type_trac
    242242    USE comgeomphy, only: airephy
    243243    USE surface_data, only: type_ocean, version_ocean, ok_veget, ok_snow
  • LMDZ5/trunk/libf/phylmd/phys_state_var_mod.F90

    r2271 r2320  
    406406USE control_mod
    407407USE aero_mod
    408 USE infotrac, ONLY : nbtr
     408USE infotrac_phy, ONLY : nbtr
    409409USE indice_sol_mod
    410410IMPLICIT NONE
  • LMDZ5/trunk/libf/phylmd/physiq.F90

    r2318 r2320  
    1717  USE write_field_phy
    1818  USE dimphy
    19   USE infotrac
     19  USE infotrac_phy, ONLY: nqtot, nbtr, nqo, type_trac
    2020  USE mod_grid_phy_lmdz
    2121  USE mod_phys_lmdz_para
  • LMDZ5/trunk/libf/phylmd/phystokenc.F90

    r2311 r2320  
    99  USE ioipsl
    1010  USE dimphy
    11   USE infotrac, ONLY : nqtot
     11  USE infotrac_phy, ONLY : nqtot
    1212  USE iophy
    1313  USE control_mod
  • LMDZ5/trunk/libf/phylmd/phytrac_mod.F90

    r2311 r2320  
    8989    USE phys_cal_mod, only : hour
    9090    USE dimphy
    91     USE infotrac
     91    USE infotrac_phy, ONLY: nbtr, type_trac, conv_flg, solsym, pbl_flg
    9292    USE mod_grid_phy_lmdz
    9393    USE mod_phys_lmdz_para
  • LMDZ5/trunk/libf/phylmd/radiation_AR4.F90

    r2311 r2320  
    485485  USE dimphy
    486486  USE radiation_ar4_param, ONLY: rsun, rray
    487   USE infotrac, ONLY: type_trac
     487  USE infotrac_phy, ONLY: type_trac
    488488#ifdef REPROBUS
    489489  USE chem_rep, ONLY: rsuntime, ok_suntime
     
    709709  USE dimphy
    710710  USE radiation_ar4_param, ONLY: rsun, rray
    711   USE infotrac, ONLY: type_trac
     711  USE infotrac_phy, ONLY: type_trac
    712712#ifdef REPROBUS
    713713  USE chem_rep, ONLY: rsuntime, ok_suntime
     
    23422342  USE dimphy
    23432343  USE radiation_ar4_param, ONLY: tref, rt1, raer, at, bt, oct
    2344   USE infotrac, ONLY: type_trac
     2344  USE infotrac_phy, ONLY: type_trac
    23452345#ifdef REPROBUS
    23462346  USE chem_rep, ONLY: rch42d, rn2o2d, rcfc112d, rcfc122d, ok_rtime2d
  • LMDZ5/trunk/libf/phylmd/radio_decay.F90

    r1907 r2320  
    77!
    88  USE dimphy
    9   USE infotrac, ONLY : nbtr
     9  USE infotrac_phy, ONLY : nbtr
    1010  USE traclmdz_mod, ONLY : id_rn, id_pb
    1111  IMPLICIT NONE
  • LMDZ5/trunk/libf/phylmd/radlwsw_m.F90

    r2311 r2320  
    4848  USE DIMPHY
    4949  USE assert_m, ONLY : assert
    50   USE infotrac, ONLY : type_trac
     50  USE infotrac_phy, ONLY : type_trac
    5151  USE write_field_phy
    5252#ifdef REPROBUS
  • LMDZ5/trunk/libf/phylmd/tracinca_mod.F90

    r2180 r2320  
    1111    ! This subroutine initialize some control varaibles.
    1212
    13     USE infotrac
     13    USE infotrac_phy, ONLY: nbtr
    1414    IMPLICIT NONE
    1515   
     
    4242
    4343    USE dimphy
    44     USE infotrac
     44    USE infotrac_phy, ONLY: nbtr
    4545    USE vampir
    4646    USE comgeomphy
  • LMDZ5/trunk/libf/phylmd/traclmdz_mod.F90

    r2311 r2320  
    6767   
    6868    USE dimphy
    69     USE infotrac
     69    USE infotrac_phy
    7070   
    7171    ! Input argument
     
    8989    ! Initialization of the tracers should be done here only for those not found in the restart file.
    9090    USE dimphy
    91     USE infotrac
     91    USE infotrac_phy
    9292    USE regr_pr_comb_coefoz_m, ONLY: alloc_coefoz
    9393    USE press_coefoz_m, ONLY: press_coefoz
     
    343343   
    344344    USE dimphy
    345     USE infotrac
     345    USE infotrac_phy
    346346    USE regr_pr_comb_coefoz_m, ONLY: regr_pr_comb_coefoz
    347347    USE o3_chem_m, ONLY: o3_chem
     
    626626    ! variable trs is written to restart file (restartphy.nc)
    627627    USE dimphy
    628     USE infotrac
     628    USE infotrac_phy
    629629   
    630630    REAL,DIMENSION(klon,nbtr), INTENT(OUT) :: trs_out
  • LMDZ5/trunk/libf/phylmd/tracreprobus_mod.F90

    r2180 r2320  
    1212
    1313    USE dimphy
    14     USE infotrac
     14    USE infotrac_phy
    1515#ifdef REPROBUS
    1616    USE CHEM_REP, ONLY : pdt_rep, &  ! pas de temps reprobus
  • LMDZ5/trunk/libf/phymar/physiq.F90

    r2221 r2320  
    1717
    1818      USE dimphy, only : klon,klev,klevp1
    19       USE infotrac, only : nqtot
     19      USE infotrac_phy, only : nqtot
    2020      USE comgeomphy, only : rlatd,rlond,airephy
    2121      !USE comcstphy, only : rg
Note: See TracChangeset for help on using the changeset viewer.