Ignore:
Timestamp:
Oct 25, 2016, 9:23:21 AM (8 years ago)
Author:
emillour
Message:

Further work on full dynamics/physics separation.

LMDZ.COMMON:

  • added phy_common/vertical_layers_mod.F90 to store information on vertical grid. This is where routines in the physics should get the information.
  • The contents of vertical_layers_mod intialized via dynphy_lonlat/inigeomphy_mod.F90.

LMDZ.MARS:

  • physics now completely decoupled from dynamics; the physics package may now be compiled as a library (-libphy option of makelmdz_fcm).
  • created an "ini_tracer_mod" routine in module "tracer_mod" for a cleaner initialization of the later.
  • removed some purely dynamics-related outputs (etot0, zoom parameters, etc.) from diagfi.nc and stats.nc outputs as these informations are not available in the physics.

LMDZ.GENERIC:

  • physics now completely decoupled from dynamics; the physics package may now be compiled as a library (-libphy option of makelmdz_fcm).
  • added nqtot to tracer_h.F90.
  • removed some purely dynamics-related outputs (etot0, zoom parameters, etc.) from diagfi.nc and stats.nc outputs as these informations are not available in the physics.

LMDZ.VENUS:

  • physics now completely decoupled from dynamics; the physics package may now be compiled as a library (-libphy option of makelmdz_fcm).
  • added infotrac_phy.F90 to store information on tracers in the physics. Initialized via iniphysiq.
  • added cpdet_phy_mod.F90 to store t2tpot etc. functions to be used in the physics. Initialized via iniphysiq. IMPORTANT: there are some hard-coded constants! These should match what is in cpdet_mod.F90 in the dynamics.
  • got rid of references to moyzon_mod module within the physics. The required variables (tmoy, plevmoy) are passed to the physics as arguments to physiq.

LMDZ.TITAN:

  • added infotrac_phy.F90 to store information on tracers in the physics. Initialized via iniphysiq.
  • added cpdet_phy_mod.F90 to store t2tpot etc. functions to be used in the physics.
  • Extra work required to completely decouple physics and dynamics: moyzon_mod should be cleaned up and information passed from dynamics to physics as as arguments. Likewise moyzon_ch and moyzon_mu should not be queried from logic_mod (which is in the dynamics).

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/dynphy_lonlat/phytitan/iniphysiq_mod.F90

    r1573 r1621  
    1414
    1515  USE temps_mod, ONLY: annee_ref, day_ref, day_ini, day_end
     16  USE comconst_mod, ONLY: cpp
     17  USE cpdet_phy_mod, ONLY: init_cpdet_phy
     18  USE infotrac, ONLY: nqtot, tname, ttext
     19  USE logic_mod, ONLY: iflag_trac
     20  USE infotrac_phy, ONLY: init_infotrac_phy
    1621  USE time_phylmdz_mod, ONLY: init_time
    1722  USE inigeomphy_mod, ONLY: inigeomphy
     
    7378  ! Initialize some physical constants
    7479  call suphec
     80 
     81  ! Initialize cpdet_phy module
     82  call init_cpdet_phy(cpp)
    7583
    7684  ! Initialize some "temporal and calendar" related variables
    7785  CALL init_time(annee_ref,day_ref,day_ini,day_end,nday,ptimestep)
     86
     87  ! Initialize tracers in physics
     88  CALL init_infotrac_phy(iflag_trac,nqtot,tname,ttext)
    7889
    7990!$OMP END PARALLEL
Note: See TracChangeset for help on using the changeset viewer.