Ignore:
Timestamp:
Oct 25, 2024, 5:59:01 PM (7 days ago)
Author:
abarral
Message:

Turn cvthermo.h into a module

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/cv3_routines.f90

    r5275 r5276  
    184184SUBROUTINE cv3_incrcount(len, nd, delt, sig)
    185185
    186 USE cvflag_mod_h, ONLY: icvflag_Tpa, cvflag_grav, cvflag_ice, ok_optim_yield, ok_entrain, ok_homo_tend, &
     186USE cvthermo_mod_h, ONLY: cpd, cpv, cl, ci, rrv, rrd, lv0, lf0, g, rowl, t0, clmcpv, clmcpd, cpdmcp, cpvmcpd, cpvmcl  &
     187          , clmci, eps, epsi, epsim1, ginv, hrd, grav
     188  USE cvflag_mod_h, ONLY: icvflag_Tpa, cvflag_grav, cvflag_ice, ok_optim_yield, ok_entrain, ok_homo_tend, &
    187189          ok_convstop, ok_intermittent, cvflag_prec_eject, qsat_depends_on_qt, adiab_ascent_mass_flux_depends_on_ejectliq, keepbug_ice_frac
    188190  IMPLICIT NONE
     
    225227SUBROUTINE cv3_prelim(len, nd, ndp1, t, q, p, ph, &
    226228                      lv, lf, cpn, tv, gz, h, hm, th)
     229  USE cvthermo_mod_h, ONLY: cpd, cpv, cl, ci, rrv, rrd, lv0, lf0, g, rowl, t0, clmcpv, clmcpd, cpdmcp, cpvmcpd, cpvmcl  &
     230          , clmci, eps, epsi, epsim1, ginv, hrd, grav
    227231  IMPLICIT NONE
    228232
     
    248252  REAL cpx(len, nd)
    249253
    250   include "cvthermo.h"
    251254  include "cv3param.h"
    252255
     
    314317  USE add_phys_tend_mod, ONLY: fl_cor_ebil
    315318  USE print_control_mod, ONLY: prt_level
     319  USE cvthermo_mod_h, ONLY: cpd, cpv, cl, ci, rrv, rrd, lv0, lf0, g, rowl, t0, clmcpv, clmcpd, cpdmcp, cpvmcpd, cpvmcl  &
     320          , clmci, eps, epsi, epsim1, ginv, hrd, grav
    316321  IMPLICIT NONE
    317322
     
    332337
    333338  include "cv3param.h"
    334   include "cvthermo.h"
    335339
    336340!inputs:
     
    605609SUBROUTINE cv3_undilute1(len, nd, t, qs, gz, plcl, p, icb, tnk, qnk, gznk, &
    606610                         tp, tvp, clw, icbs)
     611  USE cvthermo_mod_h, ONLY: cpd, cpv, cl, ci, rrv, rrd, lv0, lf0, g, rowl, t0, clmcpv, clmcpd, cpdmcp, cpvmcpd, cpvmcl  &
     612          , clmci, eps, epsi, epsim1, ginv, hrd, grav
    607613  USE cvflag_mod_h, ONLY: icvflag_Tpa, cvflag_grav, cvflag_ice, ok_optim_yield, ok_entrain, ok_homo_tend, &
    608614          ok_convstop, ok_intermittent, cvflag_prec_eject, qsat_depends_on_qt, adiab_ascent_mass_flux_depends_on_ejectliq, keepbug_ice_frac
     
    622628! ----------------------------------------------------------------
    623629
    624   include "cvthermo.h"
    625630  include "cv3param.h"
    626631
     
    11411146  USE cvflag_mod_h, ONLY: icvflag_Tpa, cvflag_grav, cvflag_ice, ok_optim_yield, ok_entrain, ok_homo_tend, &
    11421147          ok_convstop, ok_intermittent, cvflag_prec_eject, qsat_depends_on_qt, adiab_ascent_mass_flux_depends_on_ejectliq, keepbug_ice_frac
     1148  USE cvthermo_mod_h, ONLY: cpd, cpv, cl, ci, rrv, rrd, lv0, lf0, g, rowl, t0, clmcpv, clmcpd, cpdmcp, cpvmcpd, cpvmcl  &
     1149          , clmci, eps, epsi, epsim1, ginv, hrd, grav
    11431150  IMPLICIT NONE
    11441151
     
    11611168! ---------------------------------------------------------------------
    11621169
    1163   include "cvthermo.h"
    11641170  include "cv3param.h"
    11651171  include "conema3.h"
     
    20502056                       pbase, p, ph, tv, buoy, &
    20512057                       sig, w0, cape, m, iflag)
     2058  USE cvthermo_mod_h, ONLY: cpd, cpv, cl, ci, rrv, rrd, lv0, lf0, g, rowl, t0, clmcpv, clmcpd, cpdmcp, cpvmcpd, cpvmcl  &
     2059          , clmci, eps, epsi, epsim1, ginv, hrd, grav
    20522060  USE cvflag_mod_h, ONLY: icvflag_Tpa, cvflag_grav, cvflag_ice, ok_optim_yield, ok_entrain, ok_homo_tend, &
    20532061          ok_convstop, ok_intermittent, cvflag_prec_eject, qsat_depends_on_qt, adiab_ascent_mass_flux_depends_on_ejectliq, keepbug_ice_frac
     
    20602068! ===================================================================
    20612069
    2062   include "cvthermo.h"
    20632070  include "cv3param.h"
    20642071
     
    22962303  USE cvflag_mod_h, ONLY: icvflag_Tpa, cvflag_grav, cvflag_ice, ok_optim_yield, ok_entrain, ok_homo_tend, &
    22972304          ok_convstop, ok_intermittent, cvflag_prec_eject, qsat_depends_on_qt, adiab_ascent_mass_flux_depends_on_ejectliq, keepbug_ice_frac
     2305  USE cvthermo_mod_h, ONLY: cpd, cpv, cl, ci, rrv, rrd, lv0, lf0, g, rowl, t0, clmcpv, clmcpd, cpdmcp, cpvmcpd, cpvmcl  &
     2306          , clmci, eps, epsi, epsim1, ginv, hrd, grav
    22982307  IMPLICIT NONE
    22992308
     
    23032312! ---------------------------------------------------------------------
    23042313
    2305   include "cvthermo.h"
    23062314  include "cv3param.h"
    23072315
     
    27172725                     faci, b, sigd, &
    27182726                     wdtrainA, wdtrainS, wdtrainM)                                      ! RomP
     2727  USE cvthermo_mod_h, ONLY: cpd, cpv, cl, ci, rrv, rrd, lv0, lf0, g, rowl, t0, clmcpv, clmcpd, cpdmcp, cpvmcpd, cpvmcl  &
     2728          , clmci, eps, epsi, epsim1, ginv, hrd, grav
    27192729  USE cvflag_mod_h, ONLY: icvflag_Tpa, cvflag_grav, cvflag_ice, ok_optim_yield, ok_entrain, ok_homo_tend, &
    27202730          ok_convstop, ok_intermittent, cvflag_prec_eject, qsat_depends_on_qt, adiab_ascent_mass_flux_depends_on_ejectliq, keepbug_ice_frac
     
    27222732  IMPLICIT NONE
    27232733
    2724   include "cvthermo.h"
    27252734  include "cv3param.h"
    27262735  include "nuage.h"
     
    34663475    USE cvflag_mod_h, ONLY: icvflag_Tpa, cvflag_grav, cvflag_ice, ok_optim_yield, ok_entrain, ok_homo_tend, &
    34673476          ok_convstop, ok_intermittent, cvflag_prec_eject, qsat_depends_on_qt, adiab_ascent_mass_flux_depends_on_ejectliq, keepbug_ice_frac
    3468 
     3477    USE cvthermo_mod_h, ONLY: cpd, cpv, cl, ci, rrv, rrd, lv0, lf0, g, rowl, t0, clmcpv, clmcpd, cpdmcp, cpvmcpd, cpvmcl  &
     3478          , clmci, eps, epsi, epsim1, ginv, hrd, grav
    34693479  IMPLICIT NONE
    34703480
    3471   include "cvthermo.h"
    34723481  include "cv3param.h"
    34733482  include "conema3.h"
     
    49614970                      ep, Vprecip, elij, clw, epmlmMm, eplaMm, &
    49624971                      icb, inb)
     4972  USE cvthermo_mod_h, ONLY: cpd, cpv, cl, ci, rrv, rrd, lv0, lf0, g, rowl, t0, clmcpv, clmcpd, cpdmcp, cpvmcpd, cpvmcl  &
     4973          , clmci, eps, epsi, epsim1, ginv, hrd, grav
    49634974  USE cvflag_mod_h, ONLY: icvflag_Tpa, cvflag_grav, cvflag_ice, ok_optim_yield, ok_entrain, ok_homo_tend, &
    49644975          ok_convstop, ok_intermittent, cvflag_prec_eject, qsat_depends_on_qt, adiab_ascent_mass_flux_depends_on_ejectliq, keepbug_ice_frac
     
    51515162          USE cvflag_mod_h, ONLY: icvflag_Tpa, cvflag_grav, cvflag_ice, ok_optim_yield, ok_entrain, ok_homo_tend, &
    51525163          ok_convstop, ok_intermittent, cvflag_prec_eject, qsat_depends_on_qt, adiab_ascent_mass_flux_depends_on_ejectliq, keepbug_ice_frac
     5164          USE cvthermo_mod_h, ONLY: cpd, cpv, cl, ci, rrv, rrd, lv0, lf0, g, rowl, t0, clmcpv, clmcpd, cpdmcp, cpvmcpd, cpvmcl  &
     5165          , clmci, eps, epsi, epsim1, ginv, hrd, grav
    51535166        implicit none
    51545167
     
    51585171        ! Toutes les autres variables fn de ep sont calcul�es plus bas.
    51595172
    5160   include "cvthermo.h"
    51615173  include "cv3param.h"
    51625174  include "conema3.h"
Note: See TracChangeset for help on using the changeset viewer.