Ignore:
Timestamp:
Oct 25, 2024, 3:41:23 PM (3 months ago)
Author:
abarral
Message:

Replace yomcst.h by existing module

Location:
LMDZ6/trunk/libf/phylmd/dyn1d
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/dyn1d/1DUTILS.h

    r5272 r5274  
    13521352!   sans WTG rajouter une advection horizontale
    13531353!----------------------------------------------------------------------
    1354         implicit none
    1355 INCLUDE "YOMCST.h"
     1354        USE yomcst_mod_h, ONLY: RPI, RCLUM, RHPLA, RKBOL, RNAVO                   &
     1355          , RDAY, REA, REPSM, RSIYEA, RSIDAY, ROMEGA                  &
     1356          , R_ecc, R_peri, R_incl                                      &
     1357          , RA, RG, R1SA                                         &
     1358          , RSIGMA                                                     &
     1359          , R, RMD, RMV, RD, RV, RCPD                    &
     1360          , RMO3, RMCO2, RMC, RMCH4, RMN2O, RMCFC11, RMCFC12        &
     1361          , RCPV, RCVD, RCVV, RKAPPA, RETV, eps_w                    &
     1362          , RCW, RCS                                                 &
     1363          , RLVTT, RLSTT, RLMLT, RTT, RATM                           &
     1364          , RESTT, RALPW, RBETW, RGAMW, RALPS, RBETS, RGAMS            &
     1365          , RALPD, RBETD, RGAMD
     1366implicit none
     1367
    13561368!        argument
    13571369        integer llm
     
    14261438!   sans WTG rajouter une advection horizontale
    14271439!----------------------------------------------------------------------
    1428         implicit none
    1429 INCLUDE "YOMCST.h"
     1440        USE yomcst_mod_h, ONLY: RPI, RCLUM, RHPLA, RKBOL, RNAVO                   &
     1441          , RDAY, REA, REPSM, RSIYEA, RSIDAY, ROMEGA                  &
     1442          , R_ecc, R_peri, R_incl                                      &
     1443          , RA, RG, R1SA                                         &
     1444          , RSIGMA                                                     &
     1445          , R, RMD, RMV, RD, RV, RCPD                    &
     1446          , RMO3, RMCO2, RMC, RMCH4, RMN2O, RMCFC11, RMCFC12        &
     1447          , RCPV, RCVD, RCVV, RKAPPA, RETV, eps_w                    &
     1448          , RCW, RCS                                                 &
     1449          , RLVTT, RLSTT, RLMLT, RTT, RATM                           &
     1450          , RESTT, RALPW, RBETW, RGAMW, RALPS, RBETS, RGAMS            &
     1451          , RALPD, RBETD, RGAMD
     1452implicit none
     1453
    14301454!        argument
    14311455        integer llm,nqtot
     
    15071531  USE dimphy
    15081532
    1509   implicit none
     1533  USE yomcst_mod_h, ONLY: RPI, RCLUM, RHPLA, RKBOL, RNAVO                   &
     1534          , RDAY, REA, REPSM, RSIYEA, RSIDAY, ROMEGA                  &
     1535          , R_ecc, R_peri, R_incl                                      &
     1536          , RA, RG, R1SA                                         &
     1537          , RSIGMA                                                     &
     1538          , R, RMD, RMV, RD, RV, RCPD                    &
     1539          , RMO3, RMCO2, RMC, RMCH4, RMN2O, RMCFC11, RMCFC12        &
     1540          , RCPV, RCVD, RCVV, RKAPPA, RETV, eps_w                    &
     1541          , RCW, RCS                                                 &
     1542          , RLVTT, RLSTT, RLMLT, RTT, RATM                           &
     1543          , RESTT, RALPW, RBETW, RGAMW, RALPS, RBETS, RGAMS            &
     1544          , RALPD, RBETD, RGAMD
     1545implicit none
    15101546
    15111547! ========================================================
     
    15261562! Declaration des constantes et des fonctions thermodynamiques
    15271563!
    1528 include "YOMCST.h"
     1564
    15291565include "YOETHF.h"
    15301566!
     
    15901626  USE dimphy
    15911627
    1592   implicit none
     1628  USE yomcst_mod_h, ONLY: RPI, RCLUM, RHPLA, RKBOL, RNAVO                   &
     1629          , RDAY, REA, REPSM, RSIYEA, RSIDAY, ROMEGA                  &
     1630          , R_ecc, R_peri, R_incl                                      &
     1631          , RA, RG, R1SA                                         &
     1632          , RSIGMA                                                     &
     1633          , R, RMD, RMV, RD, RV, RCPD                    &
     1634          , RMO3, RMCO2, RMC, RMCH4, RMN2O, RMCFC11, RMCFC12        &
     1635          , RCPV, RCVD, RCVV, RKAPPA, RETV, eps_w                    &
     1636          , RCW, RCS                                                 &
     1637          , RLVTT, RLSTT, RLMLT, RTT, RATM                           &
     1638          , RESTT, RALPW, RBETW, RGAMW, RALPS, RBETS, RGAMS            &
     1639          , RALPD, RBETD, RGAMD
     1640implicit none
    15931641
    15941642! ========================================================
     
    16201668! Declaration des constantes et des fonctions thermodynamiques
    16211669!
    1622 include "YOMCST.h"
     1670
    16231671include "YOETHF.h"
    16241672!
     
    17471795
    17481796       USE dimensions_mod, ONLY: iim, jjm, llm, ndm
     1797USE yomcst_mod_h, ONLY: RPI, RCLUM, RHPLA, RKBOL, RNAVO                   &
     1798          , RDAY, REA, REPSM, RSIYEA, RSIDAY, ROMEGA                  &
     1799          , R_ecc, R_peri, R_incl                                      &
     1800          , RA, RG, R1SA                                         &
     1801          , RSIGMA                                                     &
     1802          , R, RMD, RMV, RD, RV, RCPD                    &
     1803          , RMO3, RMCO2, RMC, RMCH4, RMN2O, RMCFC11, RMCFC12        &
     1804          , RCPV, RCVD, RCVV, RKAPPA, RETV, eps_w                    &
     1805          , RCW, RCS                                                 &
     1806          , RLVTT, RLSTT, RLMLT, RTT, RATM                           &
     1807          , RESTT, RALPW, RBETW, RGAMW, RALPS, RBETS, RGAMS            &
     1808          , RALPD, RBETD, RGAMD
    17491809implicit none
    17501810
    1751 INCLUDE "YOMCST.h"
     1811
    17521812
    17531813
  • LMDZ6/trunk/libf/phylmd/dyn1d/1Dconv.h

    r5271 r5274  
    66     &       Ts,imp_fcg,ts_fcg,Tp_fcg,Turb_fcg)                                 
    77!
    8         implicit none
    9  
     8        USE yomcst_mod_h, ONLY: RPI, RCLUM, RHPLA, RKBOL, RNAVO                   &
     9          , RDAY, REA, REPSM, RSIYEA, RSIDAY, ROMEGA                  &
     10          , R_ecc, R_peri, R_incl                                      &
     11          , RA, RG, R1SA                                         &
     12          , RSIGMA                                                     &
     13          , R, RMD, RMV, RD, RV, RCPD                    &
     14          , RMO3, RMCO2, RMC, RMCH4, RMN2O, RMCFC11, RMCFC12        &
     15          , RCPV, RCVD, RCVV, RKAPPA, RETV, eps_w                    &
     16          , RCW, RCS                                                 &
     17          , RLVTT, RLSTT, RLMLT, RTT, RATM                           &
     18          , RESTT, RALPW, RBETW, RGAMW, RALPS, RBETS, RGAMS            &
     19          , RALPD, RBETD, RGAMD
     20implicit none
     21
    1022!ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
    1123! cette routine permet d obtenir u_convg,v_convg,ht,hq et ainsi de
     
    1325!cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
    1426
    15       INCLUDE "YOMCST.h"
     27
    1628
    1729      INTEGER klev
  • LMDZ6/trunk/libf/phylmd/dyn1d/mod_1D_cases_read_std.f90

    r5271 r5274  
    932932
    933933    USE dimensions_mod, ONLY: iim, jjm, llm, ndm
     934USE yomcst_mod_h, ONLY: RPI, RCLUM, RHPLA, RKBOL, RNAVO                   &
     935          , RDAY, REA, REPSM, RSIYEA, RSIDAY, ROMEGA                  &
     936          , R_ecc, R_peri, R_incl                                      &
     937          , RA, RG, R1SA                                         &
     938          , RSIGMA                                                     &
     939          , R, RMD, RMV, RD, RV, RCPD                    &
     940          , RMO3, RMCO2, RMC, RMCH4, RMN2O, RMCFC11, RMCFC12        &
     941          , RCPV, RCVD, RCVV, RKAPPA, RETV, eps_w                    &
     942          , RCW, RCS                                                 &
     943          , RLVTT, RLSTT, RLMLT, RTT, RATM                           &
     944          , RESTT, RALPW, RBETW, RGAMW, RALPS, RBETS, RGAMS            &
     945          , RALPD, RBETD, RGAMD
    934946implicit none
    935947
    936     INCLUDE "YOMCST.h"
     948
    937949
    938950
  • LMDZ6/trunk/libf/phylmd/dyn1d/old_1DUTILS_read_interp.h

    r5271 r5274  
    14631463     &             ,ufa_astex,vfa_astex,div_prof,ts_prof,ug_prof,vg_prof   &
    14641464     &             ,ufa_prof,vfa_prof)
    1465         implicit none
     1465        USE yomcst_mod_h, ONLY: RPI, RCLUM, RHPLA, RKBOL, RNAVO                   &
     1466          , RDAY, REA, REPSM, RSIYEA, RSIDAY, ROMEGA                  &
     1467          , R_ecc, R_peri, R_incl                                      &
     1468          , RA, RG, R1SA                                         &
     1469          , RSIGMA                                                     &
     1470          , R, RMD, RMV, RD, RV, RCPD                    &
     1471          , RMO3, RMCO2, RMC, RMCH4, RMN2O, RMCFC11, RMCFC12        &
     1472          , RCPV, RCVD, RCVV, RKAPPA, RETV, eps_w                    &
     1473          , RCW, RCS                                                 &
     1474          , RLVTT, RLSTT, RLMLT, RTT, RATM                           &
     1475          , RESTT, RALPW, RBETW, RGAMW, RALPS, RBETS, RGAMS            &
     1476          , RALPD, RBETD, RGAMD
     1477      implicit none
    14661478
    14671479!---------------------------------------------------------------------------------------
     
    15431555     &'day,annee_ref,day_ini_astex,timeit,it_astex1,it_astex2,SST:',       &
    15441556     &day,annee_ref,day_ini_astex,timeit/86400.,it_astex1,                 &
    1545      &it_astex2,div_prof,ts_prof,ug_prof,vg_prof,ufa_prof,vfa_prof 
     1557     &it_astex2,div_prof,ts_prof,ug_prof,vg_prof,ufa_prof,vfa_prof
    15461558
    15471559        return
     
    18151827! Time interpolation of a 2D field to the timestep corresponding to day
    18161828!
    1817 ! day: current julian day 
     1829! day: current julian day
    18181830! day1: first day of the simulation
    18191831! nt_gabls4: total nb of data in the forcing (e.g. 37 for gabls4)
     
    21482160        close(ilesfile)
    21492161
    2150 ! Vertical coordinates half levels for eta-coordinates (plev = alpha + beta * psurf) 
     2162! Vertical coordinates half levels for eta-coordinates (plev = alpha + beta * psurf)
    21512163       IF(nlev_max.EQ.19) THEN
    21522164       open (ifile,file='proh.inp.19',status='old',iostat=ierr)
     
    22502262           stop 'vg'
    22512263         endif
    2252      
     2264
    22532265      ierr=nf90_inq_varid(nid,"wls",var3didin(9))
    22542266         if(ierr/=nf90_noerr) then
     
    22822294!dimensions lecture
    22832295!      call catchaxis(nid,ntime,nlevel,time,z,ierr)
    2284  
     2296
    22852297         ierr = NF90_GET_VAR(nid,var3didin(1),zz)
    22862298         if(ierr/=nf90_noerr) then
     
    23032315         endif
    23042316!          write(*,*)'lecture qt ok',qt
    2305  
     2317
    23062318         ierr = NF90_GET_VAR(nid,var3didin(4),u)
    23072319         if(ierr/=nf90_noerr) then
     
    23742386!          write(*,*)'lecture thl_rad ok',thl_rad
    23752387
    2376          return 
     2388         return
    23772389         end subroutine read_fire
    23782390!=====================================================================
     
    23872399            nf90_inq_dimid,nf90_inquire_dimension
    23882400
    2389       implicit none
    2390       INCLUDE "YOMCST.h"
     2401      USE yomcst_mod_h, ONLY: RPI, RCLUM, RHPLA, RKBOL, RNAVO                   &
     2402          , RDAY, REA, REPSM, RSIYEA, RSIDAY, ROMEGA                  &
     2403          , R_ecc, R_peri, R_incl                                      &
     2404          , RA, RG, R1SA                                         &
     2405          , RSIGMA                                                     &
     2406          , R, RMD, RMV, RD, RV, RCPD                    &
     2407          , RMO3, RMCO2, RMC, RMCH4, RMN2O, RMCFC11, RMCFC12        &
     2408          , RCPV, RCVD, RCVV, RKAPPA, RETV, eps_w                    &
     2409          , RCW, RCS                                                 &
     2410          , RLVTT, RLSTT, RLMLT, RTT, RATM                           &
     2411          , RESTT, RALPW, RBETW, RGAMW, RALPS, RBETS, RGAMS            &
     2412          , RALPD, RBETD, RGAMD
     2413implicit none
     2414
    23912415
    23922416      integer ntime,nlevel
     
    24712495           stop 'lhf'
    24722496         endif
    2473      
     2497
    24742498      ierr=nf90_inq_varid(nid,"lwup",var3didin(4))
    24752499         if(ierr/=nf90_noerr) then
     
    25512575!dimensions lecture
    25522576!      call catchaxis(nid,ntime,nlevel,time,z,ierr)
    2553  
     2577
    25542578         ierr = NF90_GET_VAR(nid,var3didin(1),zz)
    25552579         if(ierr/=nf90_noerr) then
     
    25582582         endif
    25592583!          write(*,*)'lecture zz ok',zz
    2560  
     2584
    25612585         ierr = NF90_GET_VAR(nid,var3didin(11),pres)
    25622586         if(ierr/=nf90_noerr) then
     
    25822606         endif
    25832607!          write(*,*)'lecture qv ok',qv
    2584  
     2608
    25852609         ierr = NF90_GET_VAR(nid,var3didin(14),u)
    25862610         if(ierr/=nf90_noerr) then
     
    27092733!          write(*,*)'lecture omega ok',omega
    27102734
    2711          return 
     2735         return
    27122736         end subroutine read_dice
    27132737!=====================================================================
     
    27172741!program reading initial profils and forcings of the Gabls4 case study
    27182742
     2743      USE yomcst_mod_h, ONLY: RPI, RCLUM, RHPLA, RKBOL, RNAVO                   &
     2744          , RDAY, REA, REPSM, RSIYEA, RSIDAY, ROMEGA                  &
     2745          , R_ecc, R_peri, R_incl                                      &
     2746          , RA, RG, R1SA                                         &
     2747          , RSIGMA                                                     &
     2748          , R, RMD, RMV, RD, RV, RCPD                    &
     2749          , RMO3, RMCO2, RMC, RMCH4, RMN2O, RMCFC11, RMCFC12        &
     2750          , RCPV, RCVD, RCVV, RKAPPA, RETV, eps_w                    &
     2751          , RCW, RCS                                                 &
     2752          , RLVTT, RLSTT, RLMLT, RTT, RATM                           &
     2753          , RESTT, RALPW, RBETW, RGAMW, RALPS, RBETS, RGAMS            &
     2754          , RALPD, RBETD, RGAMD
    27192755      USE netcdf, ONLY: nf90_open,nf90_nowrite,nf90_noerr,nf90_strerror,nf90_inq_varid,nf90_get_var,&
    27202756            nf90_inq_dimid,nf90_inquire_dimension
     
    27272763      real*8 time(ntime)
    27282764
    2729 !  ATTENTION: visiblement quand on lit gabls4_driver.nc on recupere les donnees 
     2765!  ATTENTION: visiblement quand on lit gabls4_driver.nc on recupere les donnees
    27302766! dans un ordre inverse par rapport a la convention LMDZ
    27312767! ==> il faut tout inverser  (MPL 20141024)
     
    28462882!dimensions lecture
    28472883!      call catchaxis(nid,ntime,nlevel,time,z,ierr)
    2848  
     2884
    28492885         ierr = NF90_GET_VAR(nid,var3didin(1),zz_i)
    28502886         if(ierr/=nf90_noerr) then
     
    28522888            stop "getvarup"
    28532889         endif
    2854  
     2890
    28552891         ierr = NF90_GET_VAR(nid,var3didin(2),depth_sn)
    28562892         if(ierr/=nf90_noerr) then
     
    28582894            stop "getvarup"
    28592895         endif
    2860  
     2896
    28612897         ierr = NF90_GET_VAR(nid,var3didin(3),ug_i)
    28622898         if(ierr/=nf90_noerr) then
     
    28642900            stop "getvarup"
    28652901         endif
    2866  
     2902
    28672903         ierr = NF90_GET_VAR(nid,var3didin(4),vg_i)
    28682904         if(ierr/=nf90_noerr) then
     
    28702906            stop "getvarup"
    28712907         endif
    2872  
     2908
    28732909         ierr = NF90_GET_VAR(nid,var3didin(5),pf_i)
    28742910         if(ierr/=nf90_noerr) then
     
    28942930            stop "getvarup"
    28952931         endif
    2896  
     2932
    28972933         ierr = NF90_GET_VAR(nid,var3didin(9),u_i)
    28982934         if(ierr/=nf90_noerr) then
     
    29002936            stop "getvarup"
    29012937         endif
    2902  
     2938
    29032939         ierr = NF90_GET_VAR(nid,var3didin(10),v_i)
    29042940         if(ierr/=nf90_noerr) then
     
    29062942            stop "getvarup"
    29072943         endif
    2908  
     2944
    29092945         ierr = NF90_GET_VAR(nid,var3didin(11),hadvt_i)
    29102946         if(ierr/=nf90_noerr) then
     
    29122948            stop "getvarup"
    29132949         endif
    2914  
     2950
    29152951         ierr = NF90_GET_VAR(nid,var3didin(12),hadvq_i)
    29162952         if(ierr/=nf90_noerr) then
     
    29182954            stop "getvarup"
    29192955         endif
    2920  
     2956
    29212957         ierr = NF90_GET_VAR(nid,var3didin(14),tsnow)
    29222958         if(ierr/=nf90_noerr) then
     
    29242960            stop "getvarup"
    29252961         endif
    2926  
     2962
    29272963         ierr = NF90_GET_VAR(nid,var3didin(15),snow_dens)
    29282964         if(ierr/=nf90_noerr) then
     
    29522988           hadvq(k,:)=hadvq_i(nlevel+1-k,:)
    29532989         enddo
    2954          return 
     2990         return
    29552991 end subroutine read_gabls4
    29562992!=====================================================================
    29572993
    2958 !     Reads CIRC input files     
     2994!     Reads CIRC input files
    29592995
    29602996      SUBROUTINE read_circ(nlev_circ,cf,lwp,iwp,reliq,reice,t,z,p,pm,h2o,o3,sza)
    2961      
     2997
    29622998      parameter (ncm_1=49180)
    2963       INCLUDE "YOMCST.h"
    29642999
    29653000      real albsfc(ncm_1), albsfc_w(ncm_1)
     
    29853020      open (15, file='cloud_input_case.txt', status='old')
    29863021      open (16, file='sfcalbedo_input_case.txt', status='old')
    2987      
     3022
    29883023!     Read scalar information
    29893024      do iskip=1,5
     
    30183053         pm(il)=pm(il)*100.
    30193054      enddo
    3020 303   format (i8, 2f9.2, 10(2x,e13.7))     
     3055303   format (i8, 2f9.2, 10(2x,e13.7))
    30213056      close(13)
    3022      
     3057
    30233058!     Read aerosol layer information
    30243059      do iskip=1,3
     
    30333068304   format (i8, f9.5, 2f8.3)
    30343069      close(14)
    3035      
     3070
    30363071!     Read cloud information
    30373072      do iskip=1,3
     
    30573092306   format(f10.1, 2f12.5, f14.8)
    30583093      close(16)
    3059  
    3060       return 
     3094
     3095      return
    30613096      end subroutine read_circ
    30623097!=====================================================================
    3063 !     Reads RTMIP input files     
     3098!     Reads RTMIP input files
    30643099
    30653100      SUBROUTINE read_rtmip(nlev_rtmip,play,plev,t,h2o,o3)
    3066      
    3067       INCLUDE "YOMCST.h"
     3101
    30683102
    30693103      real t(nlev_rtmip), pt(nlev_rtmip),pb(nlev_rtmip),h2o(nlev_rtmip), o3(nlev_rtmip)
  • LMDZ6/trunk/libf/phylmd/dyn1d/old_lmdz1d.f90

    r5273 r5274  
    5050   USE dimensions_mod, ONLY: iim, jjm, llm, ndm
    5151   USE dimsoil_mod_h, ONLY: nsoilmx
     52USE yomcst_mod_h, ONLY: RPI, RCLUM, RHPLA, RKBOL, RNAVO                   &
     53          , RDAY, REA, REPSM, RSIYEA, RSIDAY, ROMEGA                  &
     54          , R_ecc, R_peri, R_incl                                      &
     55          , RA, RG, R1SA                                         &
     56          , RSIGMA                                                     &
     57          , R, RMD, RMV, RD, RV, RCPD                    &
     58          , RMO3, RMCO2, RMC, RMCH4, RMN2O, RMCFC11, RMCFC12        &
     59          , RCPV, RCVD, RCVV, RKAPPA, RETV, eps_w                    &
     60          , RCW, RCS                                                 &
     61          , RLVTT, RLSTT, RLMLT, RTT, RATM                           &
     62          , RESTT, RALPW, RBETW, RGAMW, RALPS, RBETS, RGAMS            &
     63          , RALPD, RBETD, RGAMD
    5264implicit none
    5365
    54       INCLUDE "YOMCST.h"
     66
    5567!!      INCLUDE "control.h"
    5668      INCLUDE "clesphys.h"
  • LMDZ6/trunk/libf/phylmd/dyn1d/scm.f90

    r5273 r5274  
    4646   USE dimensions_mod, ONLY: iim, jjm, llm, ndm
    4747   USE dimsoil_mod_h, ONLY: nsoilmx
     48USE yomcst_mod_h, ONLY: RPI, RCLUM, RHPLA, RKBOL, RNAVO                   &
     49          , RDAY, REA, REPSM, RSIYEA, RSIDAY, ROMEGA                  &
     50          , R_ecc, R_peri, R_incl                                      &
     51          , RA, RG, R1SA                                         &
     52          , RSIGMA                                                     &
     53          , R, RMD, RMV, RD, RV, RCPD                    &
     54          , RMO3, RMCO2, RMC, RMCH4, RMN2O, RMCFC11, RMCFC12        &
     55          , RCPV, RCVD, RCVV, RKAPPA, RETV, eps_w                    &
     56          , RCW, RCS                                                 &
     57          , RLVTT, RLSTT, RLMLT, RTT, RATM                           &
     58          , RESTT, RALPW, RBETW, RGAMW, RALPS, RBETS, RGAMS            &
     59          , RALPD, RBETD, RGAMD
    4860implicit none
    4961
    50       INCLUDE "YOMCST.h"
     62
    5163!!      INCLUDE "control.h"
    5264      INCLUDE "clesphys.h"
Note: See TracChangeset for help on using the changeset viewer.