Changeset 6125 for LMDZ6/trunk/libf


Ignore:
Timestamp:
Mar 24, 2026, 10:56:41 AM (8 days ago)
Author:
idelkadi
Message:

Cleaning up the LMDZ physical model (physiq_mod.F90): reducing the number of arguments passed to Cosp simulators

Location:
LMDZ6/trunk/libf
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/cosp/phys_cosp.f90

    r5312 r6125  
    55!Idelkadi Abderrahmane Nov 2015 version v1.4.0
    66
    7   subroutine phys_cosp( itap,dtime,freq_cosp, &
    8                         ok_mensuelCOSP,ok_journeCOSP,ok_hfCOSP, &
    9                         ecrit_mth,ecrit_day,ecrit_hf, ok_all_xml, missing_val, &
     7  subroutine phys_cosp( itap,dtime,missing_val, &
    108                        Nptslmdz,Nlevlmdz,lon,lat, presnivs,overlaplmdz,sunlit, &
    119                        ref_liq,ref_ice,fracTerLic,u_wind,v_wind,phis,phi,ph,p,skt,t, &
     
    7977  USE mod_phys_lmdz_para
    8078  USE mod_grid_phy_lmdz
    81   use ioipsl
    82   use iophy
    83   use cosp_output_mod
    84   use cosp_output_write_mod
     79  USE ioipsl
     80  USE iophy
     81  USE cosp_output_mod
     82  USE cosp_output_write_mod
    8583!  use MOD_COSP_Modis_Simulator, only : cosp_modis
    8684  USE lmdz_xios, ONLY: xios_field_is_active, using_xios
    87   use cosp_read_otputkeys
     85  USE cosp_read_otputkeys
     86  USE conf_phys_m, ONLY : freq_cosp, ecrit_day,ecrit_hf,ecrit_mth, &
     87                          ok_mensuelCOSP,ok_journeCOSP,ok_hfCOSP, ok_all_xml
    8888
    8989  IMPLICIT NONE
     
    132132! Declaration necessaires pour les sorties IOIPSL
    133133  integer :: ii
    134   real    :: ecrit_day,ecrit_hf,ecrit_mth, missing_val
    135   logical :: ok_mensuelCOSP,ok_journeCOSP,ok_hfCOSP, ok_all_xml
     134  real    :: missing_val
    136135
    137136  logical, save :: debut_cosp=.true.
     
    150149  real,dimension(Nlevlmdz)        :: presnivs
    151150  integer                         :: itap,k,ip
    152   real                            :: dtime,freq_cosp
     151  real                            :: dtime
    153152  real,dimension(2)               :: time_bnds
    154153
  • LMDZ6/trunk/libf/phylmd/cospv2/lmdz/lmdz_cosp_interface.F90

    r6056 r6125  
    1212! Interface ecrite par A.Idelkadi (11/2025)
    1313!%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    14 subroutine lmdz_cosp_interface(itap, dtime, freq_cosp, ok_mensuelCOSP, ok_journeCOSP,   &
    15                          ok_hfCOSP, ecrit_mth, ecrit_day, ecrit_hf, ok_all_xml,   &
     14subroutine lmdz_cosp_interface(itap, dtime, &
    1615                         missing_val, Nptslmdz, Nlevlmdz, lon, lat, presnivs,     &
    1716                         overlaplmdz, sunlit, ref_liq, ref_ice, fracTerLic,       &
     
    7069  use lmdz_cosp_subsample_and_optics_mod, only : subsample_and_optics
    7170  use lmdz_cosp_construct_destroy_mod
     71  USE conf_phys_m, ONLY : freq_cosp, ecrit_day,ecrit_hf,ecrit_mth, &
     72                          ok_mensuelCOSP,ok_journeCOSP,ok_hfCOSP, ok_all_xml 
    7273
    7374!!! Modules faisant partie du code source de COSPv2
     
    147148
    148149! Declaration necessaires pour les sorties IOIPSL
    149   real          :: ecrit_day, ecrit_hf, ecrit_mth, missing_val
    150   logical       :: ok_mensuelCOSP, ok_journeCOSP, ok_hfCOSP, ok_all_xml
     150  real          :: missing_val
    151151  logical, save :: debut_cosp=.true.
    152152!$OMP THREADPRIVATE(debut_cosp)
     
    173173  real, dimension(Nlevlmdz)                :: presnivs
    174174  integer                                  :: itap, k, ip
    175   real                                     :: dtime, freq_cosp
     175  real                                     :: dtime
    176176  real, dimension(2)                       :: time_bnds
    177177
  • LMDZ6/trunk/libf/phylmd/physiq_mod.F90

    r6124 r6125  
    16411641                  mr_ozone_cosp0,cldtau_cosp0,cldemi_cosp0,JrNt_cosp0)
    16421642
    1643              CALL phys_cosp(itap,phys_tstep,freq_cosp, &
    1644                   ok_mensuelCOSP,ok_journeCOSP,ok_hfCOSP, &
    1645                   ecrit_mth,ecrit_day,ecrit_hf, ok_all_xml, missing_val, &
     1643             CALL phys_cosp(itap,phys_tstep,missing_val, &
    16461644                  klon,klev,longitude_deg,latitude_deg,presnivs,overlap, &
    16471645                  JrNt_cosp0,ref_liq_cosp0,ref_ice_cosp0, &
     
    16611659                  mr_ozone_cosp0,cldtau_cosp0,cldemi_cosp0,JrNt_cosp0)
    16621660
    1663              CALL lmdz_cosp_interface(itap,phys_tstep,freq_cosp, &
    1664                   ok_mensuelCOSP,ok_journeCOSP,ok_hfCOSP, &
    1665                   ecrit_mth,ecrit_day,ecrit_hf, ok_all_xml, missing_val, &
     1661             CALL lmdz_cosp_interface(itap,phys_tstep,missing_val, &
    16661662                  klon,klev,longitude_deg,latitude_deg,presnivs,overlap, &
    16671663                  JrNt_cosp0,ref_liq_cosp0,ref_ice_cosp0, &
     
    47864782             !       print*,'Dans physiq.F avant appel cosp ref_liq,ref_ice=',
    47874783             !     s        ref_liq,ref_ice
    4788              CALL phys_cosp(itap,phys_tstep,freq_cosp, &
    4789                   ok_mensuelCOSP,ok_journeCOSP,ok_hfCOSP, &
    4790                   ecrit_mth,ecrit_day,ecrit_hf, ok_all_xml, missing_val, &
     4784             CALL phys_cosp(itap,phys_tstep,missing_val, &
    47914785                  klon,klev,longitude_deg,latitude_deg,presnivs,overlap, &
    47924786                  JrNt,ref_liq,ref_ice, &
     
    48234817             print*,'Dans physiq.F avant appel '
    48244818             !     s        ref_liq,ref_ice
    4825              CALL lmdz_cosp_interface(itap,phys_tstep,freq_cosp, &
    4826                   ok_mensuelCOSP,ok_journeCOSP,ok_hfCOSP, &
    4827                   ecrit_mth,ecrit_day,ecrit_hf, ok_all_xml, missing_val, &
     4819             CALL lmdz_cosp_interface(itap,phys_tstep,missing_val, &
    48284820                  klon,klev,longitude_deg,latitude_deg,presnivs,overlap, &
    48294821                  JrNt,ref_liq,ref_ice, &
  • LMDZ6/trunk/libf/phylmdiso/physiq_mod.F90

    r6107 r6125  
    17651765               mr_ozone_cosp0,cldtau_cosp0,cldemi_cosp0,JrNt_cosp0)
    17661766
    1767         CALL phys_cosp(itap,phys_tstep,freq_cosp, &
    1768                ok_mensuelCOSP,ok_journeCOSP,ok_hfCOSP, &
    1769                ecrit_mth,ecrit_day,ecrit_hf, ok_all_xml, missing_val, &
     1767        CALL phys_cosp(itap,phys_tstep,missing_val, &
    17701768               klon,klev,longitude_deg,latitude_deg,presnivs,overlap, &
    17711769               JrNt_cosp0,ref_liq_cosp0,ref_ice_cosp0, &
     
    17851783               mr_ozone_cosp0,cldtau_cosp0,cldemi_cosp0,JrNt_cosp0)
    17861784
    1787           CALL lmdz_cosp_interface(itap,phys_tstep,freq_cosp, &
    1788                ok_mensuelCOSP,ok_journeCOSP,ok_hfCOSP, &
    1789                ecrit_mth,ecrit_day,ecrit_hf, ok_all_xml, missing_val, &
     1785          CALL lmdz_cosp_interface(itap,phys_tstep,missing_val, &
    17901786               klon,klev,longitude_deg,latitude_deg,presnivs,overlap, &
    17911787               JrNt_cosp0,ref_liq_cosp0,ref_ice_cosp0, &
     
    63916387          !       print*,'Dans physiq.F avant appel cosp ref_liq,ref_ice=',
    63926388          !     s        ref_liq,ref_ice
    6393           CALL phys_cosp(itap,phys_tstep,freq_cosp, &
    6394                ok_mensuelCOSP,ok_journeCOSP,ok_hfCOSP, &
    6395                ecrit_mth,ecrit_day,ecrit_hf, ok_all_xml, missing_val, &
     6389          CALL phys_cosp(itap,phys_tstep,missing_val, &
    63966390               klon,klev,longitude_deg,latitude_deg,presnivs,overlap, &
    63976391               JrNt,ref_liq,ref_ice, &
     
    64226416                 print*,'Dans physiq.F avant appel '
    64236417          !     s        ref_liq,ref_ice
    6424           CALL phys_cosp2(itap,phys_tstep,freq_cosp, &
    6425                ok_mensuelCOSP,ok_journeCOSP,ok_hfCOSP, &
    6426                ecrit_mth,ecrit_day,ecrit_hf, ok_all_xml, missing_val, &
     6418          CALL phys_cosp2(itap,phys_tstep,missing_val, &
    64276419               klon,klev,longitude_deg,latitude_deg,presnivs,overlap, &
    64286420               JrNt,ref_liq,ref_ice, &
     
    64526444                 print*,'Dans physiq.F avant appel '
    64536445          !     s        ref_liq,ref_ice
    6454           CALL lmdz_cosp_interface(itap,phys_tstep,freq_cosp, &
    6455                ok_mensuelCOSP,ok_journeCOSP,ok_hfCOSP, &
    6456                ecrit_mth,ecrit_day,ecrit_hf, ok_all_xml, missing_val, &
     6446          CALL lmdz_cosp_interface(itap,phys_tstep,missing_val, &
    64576447               klon,klev,longitude_deg,latitude_deg,presnivs,overlap, &
    64586448               JrNt,ref_liq,ref_ice, &
Note: See TracChangeset for help on using the changeset viewer.