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

Turn cvthermo.h into a module

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmdiso/cv3_routines.F90

    r5275 r5276  
    185185SUBROUTINE cv3_incrcount(len, nd, delt, sig)
    186186
    187 USE cvflag_mod_h, ONLY: icvflag_Tpa, cvflag_grav, cvflag_ice, ok_optim_yield, ok_entrain, ok_homo_tend, &
     187USE cvthermo_mod_h, ONLY: cpd, cpv, cl, ci, rrv, rrd, lv0, lf0, g, rowl, t0, clmcpv, clmcpd, cpdmcp, cpvmcpd, cpvmcl  &
     188          , clmci, eps, epsi, epsim1, ginv, hrd, grav
     189  USE cvflag_mod_h, ONLY: icvflag_Tpa, cvflag_grav, cvflag_ice, ok_optim_yield, ok_entrain, ok_homo_tend, &
    188190          ok_convstop, ok_intermittent, cvflag_prec_eject, qsat_depends_on_qt, adiab_ascent_mass_flux_depends_on_ejectliq, keepbug_ice_frac
    189191  IMPLICIT NONE
     
    226228SUBROUTINE cv3_prelim(len, nd, ndp1, t, q, p, ph, &
    227229                      lv, lf, cpn, tv, gz, h, hm, th)
     230  USE cvthermo_mod_h, ONLY: cpd, cpv, cl, ci, rrv, rrd, lv0, lf0, g, rowl, t0, clmcpv, clmcpd, cpdmcp, cpvmcpd, cpvmcl  &
     231          , clmci, eps, epsi, epsim1, ginv, hrd, grav
    228232  IMPLICIT NONE
    229233
     
    249253  REAL cpx(len, nd)
    250254
    251   include "cvthermo.h"
    252255  include "cv3param.h"
    253256
     
    323326#endif
    324327
     328  USE cvthermo_mod_h, ONLY: cpd, cpv, cl, ci, rrv, rrd, lv0, lf0, g, rowl, t0, clmcpv, clmcpd, cpdmcp, cpvmcpd, cpvmcl  &
     329          , clmci, eps, epsi, epsim1, ginv, hrd, grav
    325330  USE mod_phys_lmdz_transfert_para, ONLY : bcast
    326331  USE add_phys_tend_mod, ONLY: fl_cor_ebil
     
    344349
    345350  include "cv3param.h"
    346   include "cvthermo.h"
    347351
    348352!inputs:
     
    701705#endif
    702706#endif
     707  USE cvthermo_mod_h, ONLY: cpd, cpv, cl, ci, rrv, rrd, lv0, lf0, g, rowl, t0, clmcpv, clmcpd, cpdmcp, cpvmcpd, cpvmcl  &
     708          , clmci, eps, epsi, epsim1, ginv, hrd, grav
    703709  IMPLICIT NONE
    704710
     
    716722! ----------------------------------------------------------------
    717723
    718   include "cvthermo.h"
    719724  include "cv3param.h"
    720725
     
    14841489#endif
    14851490#endif
     1491  USE cvthermo_mod_h, ONLY: cpd, cpv, cl, ci, rrv, rrd, lv0, lf0, g, rowl, t0, clmcpv, clmcpd, cpdmcp, cpvmcpd, cpvmcl  &
     1492          , clmci, eps, epsi, epsim1, ginv, hrd, grav
    14861493  USE cvflag_mod_h, ONLY: icvflag_Tpa, cvflag_grav, cvflag_ice, ok_optim_yield, ok_entrain, ok_homo_tend, &
    14871494          ok_convstop, ok_intermittent, cvflag_prec_eject, qsat_depends_on_qt, adiab_ascent_mass_flux_depends_on_ejectliq, keepbug_ice_frac
     
    15061513! ---------------------------------------------------------------------
    15071514
    1508   include "cvthermo.h"
    15091515  include "cv3param.h"
    15101516  include "conema3.h"
     
    25132519                       pbase, p, ph, tv, buoy, &
    25142520                       sig, w0, cape, m, iflag)
     2521  USE cvthermo_mod_h, ONLY: cpd, cpv, cl, ci, rrv, rrd, lv0, lf0, g, rowl, t0, clmcpv, clmcpd, cpdmcp, cpvmcpd, cpvmcl  &
     2522          , clmci, eps, epsi, epsim1, ginv, hrd, grav
    25152523  IMPLICIT NONE
    25162524
     
    25212529! ===================================================================
    25222530
    2523   include "cvthermo.h"
    25242531  include "cv3param.h"
    25252532
     
    27842791#endif
    27852792#endif
     2793  USE cvthermo_mod_h, ONLY: cpd, cpv, cl, ci, rrv, rrd, lv0, lf0, g, rowl, t0, clmcpv, clmcpd, cpdmcp, cpvmcpd, cpvmcl  &
     2794          , clmci, eps, epsi, epsim1, ginv, hrd, grav
    27862795  USE cvflag_mod_h, ONLY: icvflag_Tpa, cvflag_grav, cvflag_ice, ok_optim_yield, ok_entrain, ok_homo_tend, &
    27872796          ok_convstop, ok_intermittent, cvflag_prec_eject, qsat_depends_on_qt, adiab_ascent_mass_flux_depends_on_ejectliq, keepbug_ice_frac
     
    27932802! ---------------------------------------------------------------------
    27942803
    2795   include "cvthermo.h"
    27962804  include "cv3param.h"
    27972805
     
    36123620#endif
    36133621#endif
     3622  USE cvthermo_mod_h, ONLY: cpd, cpv, cl, ci, rrv, rrd, lv0, lf0, g, rowl, t0, clmcpv, clmcpd, cpdmcp, cpvmcpd, cpvmcl  &
     3623          , clmci, eps, epsi, epsim1, ginv, hrd, grav
    36143624  USE cvflag_mod_h, ONLY: icvflag_Tpa, cvflag_grav, cvflag_ice, ok_optim_yield, ok_entrain, ok_homo_tend, &
    36153625          ok_convstop, ok_intermittent, cvflag_prec_eject, qsat_depends_on_qt, adiab_ascent_mass_flux_depends_on_ejectliq, keepbug_ice_frac
     
    36173627
    36183628
    3619   include "cvthermo.h"
    36203629  include "cv3param.h"
    36213630  include "nuage.h"
     
    47254734#endif
    47264735#endif
     4736  USE cvthermo_mod_h, ONLY: cpd, cpv, cl, ci, rrv, rrd, lv0, lf0, g, rowl, t0, clmcpv, clmcpd, cpdmcp, cpvmcpd, cpvmcl  &
     4737          , clmci, eps, epsi, epsim1, ginv, hrd, grav
    47274738  USE cvflag_mod_h, ONLY: icvflag_Tpa, cvflag_grav, cvflag_ice, ok_optim_yield, ok_entrain, ok_homo_tend, &
    47284739          ok_convstop, ok_intermittent, cvflag_prec_eject, qsat_depends_on_qt, adiab_ascent_mass_flux_depends_on_ejectliq, keepbug_ice_frac
    47294740  IMPLICIT NONE
    47304741
    4731   include "cvthermo.h"
    47324742  include "cv3param.h"
    47334743  include "conema3.h"
     
    76157625                 , pbase, p, ph, tv, buoy, sig, w0,iflag &
    76167626                 , epmax_diag)
    7617         USE cvflag_mod_h, ONLY: icvflag_Tpa, cvflag_grav, cvflag_ice, ok_optim_yield, ok_entrain, ok_homo_tend, &
     7627        USE cvthermo_mod_h, ONLY: cpd, cpv, cl, ci, rrv, rrd, lv0, lf0, g, rowl, t0, clmcpv, clmcpd, cpdmcp, cpvmcpd, cpvmcl  &
     7628          , clmci, eps, epsi, epsim1, ginv, hrd, grav
     7629  USE cvflag_mod_h, ONLY: icvflag_Tpa, cvflag_grav, cvflag_ice, ok_optim_yield, ok_entrain, ok_homo_tend, &
    76187630          ok_convstop, ok_intermittent, cvflag_prec_eject, qsat_depends_on_qt, adiab_ascent_mass_flux_depends_on_ejectliq, keepbug_ice_frac
    76197631  implicit none
     
    76247636        ! Toutes les autres variables fn de ep sont calculees plus bas.
    76257637
    7626   include "cvthermo.h"
    76277638  include "cv3param.h"
    76287639  include "conema3.h"
Note: See TracChangeset for help on using the changeset viewer.