Changeset 4069


Ignore:
Timestamp:
Feb 12, 2026, 5:28:54 PM (4 weeks ago)
Author:
emillour
Message:

Venus PCM:
Code cleanup: Turn radlwsw.F, lw_venus_ve.F and lwi.F into modules
and remove timerad.h, including its variable "dtimerad" in
module tabcontrol_mod, alongside "radpas".
EM

Location:
trunk/LMDZ.VENUS/libf/phyvenus
Files:
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.VENUS/libf/phyvenus/lw_venus_ve.F

    r3884 r4069  
     1      MODULE LW_venus_ve_mod
     2     
     3      IMPLICIT NONE
     4     
     5      CONTAINS
     6     
    17      SUBROUTINE LW_venus_ve(
    28     S              PPB, pt, psi, deltapsi,
     
    511     S              ZFLNET)
    612     
    7       use dimphy
     13      use dimphy, only: klev
    814      use cpdet_phy_mod, only: cpdet
    9       use YOMCST_mod
     15      use YOMCST_mod,ONLY: RG
     16      use lwi_mod, only: lwi
    1017      IMPLICIT none
    1118
    12 C#include "YOMCST.h"
    1319C
    1420C     ------------------------------------------------------------------
     
    124130c     print*,PCOOL
    125131
    126       return
    127       end
     132      END SUBROUTINE LW_venus_ve
    128133
     134      END MODULE LW_venus_ve_mod
  • trunk/LMDZ.VENUS/libf/phyvenus/lwi.F

    r3884 r4069  
     1      module lwi_mod
     2     
     3      implicit none
     4     
     5      contains
     6     
    17      subroutine lwi(nl,netrad,deltapsi,deltap,temp,coolrate)
    28
    3       use dimphy
    49      use cpdet_phy_mod, only: cpdet
    5       use YOMCST_mod
     10      use tabcontrol_mod, only: dtimerad
     11      use YOMCST_mod, only: RG
     12
    613      implicit none
    714
    8 
    9 c#include "YOMCST.h"
    10 #include "timerad.h"
    11      
    1215CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
    1316C
     
    184187c-------------------------------------------------------------------------
    185188
    186       RETURN
    187       END
     189      end subroutine lwi
     190     
     191      end module lwi_mod
  • trunk/LMDZ.VENUS/libf/phyvenus/physiq_mod.F

    r3954 r4069  
    7575      USE compo_hedin83_mod2
    7676      use radlwsw_newtoncool_mod, only: radlwsw_newtoncool
     77      use radlwsw_mod, only: radlwsw
    7778!      use ieee_arithmetic
    7879      use time_phylmdz_mod, only: annee_ref, day_ref, itau_phy
     
    8485      use sed_and_prod_mad, only: aer_sedimentation, drop_sedimentation
    8586      use iono_h, only: temp_elect, temp_ion
    86       use tabcontrol_mod, only: radpas, dtime
     87      use tabcontrol_mod, only: radpas, dtime, dtimerad
    8788      use soil_mod, only: nsoilmx
    8889      use hgardfou_mod, only: hgardfou
     
    123124c======================================================================
    124125#include "iniprint.h"
    125 #include "timerad.h"
    126126#include "nirdata.h"
    127127#include "hedin.h"
  • trunk/LMDZ.VENUS/libf/phyvenus/radlwsw.F

    r3884 r4069  
    1 !
    2 ! $Header: /home/cvsroot/LMDZ4/libf/phylmd/radlwsw.F,v 1.2 2004/10/27 10:14:46 lmdzadmin Exp $
    3 !
     1      MODULE radlwsw_mod
     2     
     3      IMPLICIT NONE
     4     
     5      CONTAINS
     6     
    47      SUBROUTINE radlwsw(dist, rmu0, fract, zzlev,
    58     .                  paprs, pplay,tsol, t)
     
    3437      use write_field_phy
    3538      use radinc_h, only: ini_radinc_h
    36       use clesphys_mod
    37       use YOMCST_mod
     39      use clesphys_mod, only: cycle_diurne, callnlte,
     40     &                        nbapp_rad, solarchoice
     41      use YOMCST_mod, only: RPI
     42      use LW_venus_ve_mod, only: LW_venus_ve
    3843
    3944#ifdef CPP_XIOS     
     
    4247
    4348      IMPLICIT none
    44 !      include "YOMCST.h"
    45 !      include "clesphys.h"
    4649      include "comcstVE.h"
    4750      include "nlteparams.h"
     
    749752      firstcall = .false.
    750753
    751       END
     754      END SUBROUTINE radlwsw
     755
     756      END MODULE radlwsw_mod
  • trunk/LMDZ.VENUS/libf/phyvenus/tabcontrol.F90

    r3875 r4069  
    77INTEGER,SAVE :: radpas ! rate of computation of radiative transfert, in physics steps
    88!$OMP THREADPRIVATE(radpas)
     9
     10REAL,SAVE :: dtimerad ! radiative time step (s) , set by physiq
     11!$OMP THREADPRIVATE(dtimerad)     
    912
    1013INTEGER,SAVE :: chimpas ! rate of computation of chemistry, in physics steps
Note: See TracChangeset for help on using the changeset viewer.