Changeset 5274 for LMDZ6/trunk/libf/phylmd/dyn1d
- Timestamp:
- Oct 25, 2024, 3:41:23 PM (3 months ago)
- Location:
- LMDZ6/trunk/libf/phylmd/dyn1d
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/dyn1d/1DUTILS.h
r5272 r5274 1352 1352 ! sans WTG rajouter une advection horizontale 1353 1353 !---------------------------------------------------------------------- 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 1366 implicit none 1367 1356 1368 ! argument 1357 1369 integer llm … … 1426 1438 ! sans WTG rajouter une advection horizontale 1427 1439 !---------------------------------------------------------------------- 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 1452 implicit none 1453 1430 1454 ! argument 1431 1455 integer llm,nqtot … … 1507 1531 USE dimphy 1508 1532 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 1545 implicit none 1510 1546 1511 1547 ! ======================================================== … … 1526 1562 ! Declaration des constantes et des fonctions thermodynamiques 1527 1563 ! 1528 include "YOMCST.h" 1564 1529 1565 include "YOETHF.h" 1530 1566 ! … … 1590 1626 USE dimphy 1591 1627 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 1640 implicit none 1593 1641 1594 1642 ! ======================================================== … … 1620 1668 ! Declaration des constantes et des fonctions thermodynamiques 1621 1669 ! 1622 include "YOMCST.h" 1670 1623 1671 include "YOETHF.h" 1624 1672 ! … … 1747 1795 1748 1796 USE dimensions_mod, ONLY: iim, jjm, llm, ndm 1797 USE 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 1749 1809 implicit none 1750 1810 1751 INCLUDE "YOMCST.h" 1811 1752 1812 1753 1813 -
LMDZ6/trunk/libf/phylmd/dyn1d/1Dconv.h
r5271 r5274 6 6 & Ts,imp_fcg,ts_fcg,Tp_fcg,Turb_fcg) 7 7 ! 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 20 implicit none 21 10 22 !ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 11 23 ! cette routine permet d obtenir u_convg,v_convg,ht,hq et ainsi de … … 13 25 !cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc 14 26 15 INCLUDE "YOMCST.h" 27 16 28 17 29 INTEGER klev -
LMDZ6/trunk/libf/phylmd/dyn1d/mod_1D_cases_read_std.f90
r5271 r5274 932 932 933 933 USE dimensions_mod, ONLY: iim, jjm, llm, ndm 934 USE 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 934 946 implicit none 935 947 936 INCLUDE "YOMCST.h" 948 937 949 938 950 -
LMDZ6/trunk/libf/phylmd/dyn1d/old_1DUTILS_read_interp.h
r5271 r5274 1463 1463 & ,ufa_astex,vfa_astex,div_prof,ts_prof,ug_prof,vg_prof & 1464 1464 & ,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 1466 1478 1467 1479 !--------------------------------------------------------------------------------------- … … 1543 1555 &'day,annee_ref,day_ini_astex,timeit,it_astex1,it_astex2,SST:', & 1544 1556 &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 1546 1558 1547 1559 return … … 1815 1827 ! Time interpolation of a 2D field to the timestep corresponding to day 1816 1828 ! 1817 ! day: current julian day 1829 ! day: current julian day 1818 1830 ! day1: first day of the simulation 1819 1831 ! nt_gabls4: total nb of data in the forcing (e.g. 37 for gabls4) … … 2148 2160 close(ilesfile) 2149 2161 2150 ! Vertical coordinates half levels for eta-coordinates (plev = alpha + beta * psurf) 2162 ! Vertical coordinates half levels for eta-coordinates (plev = alpha + beta * psurf) 2151 2163 IF(nlev_max.EQ.19) THEN 2152 2164 open (ifile,file='proh.inp.19',status='old',iostat=ierr) … … 2250 2262 stop 'vg' 2251 2263 endif 2252 2264 2253 2265 ierr=nf90_inq_varid(nid,"wls",var3didin(9)) 2254 2266 if(ierr/=nf90_noerr) then … … 2282 2294 !dimensions lecture 2283 2295 ! call catchaxis(nid,ntime,nlevel,time,z,ierr) 2284 2296 2285 2297 ierr = NF90_GET_VAR(nid,var3didin(1),zz) 2286 2298 if(ierr/=nf90_noerr) then … … 2303 2315 endif 2304 2316 ! write(*,*)'lecture qt ok',qt 2305 2317 2306 2318 ierr = NF90_GET_VAR(nid,var3didin(4),u) 2307 2319 if(ierr/=nf90_noerr) then … … 2374 2386 ! write(*,*)'lecture thl_rad ok',thl_rad 2375 2387 2376 return 2388 return 2377 2389 end subroutine read_fire 2378 2390 !===================================================================== … … 2387 2399 nf90_inq_dimid,nf90_inquire_dimension 2388 2400 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 2413 implicit none 2414 2391 2415 2392 2416 integer ntime,nlevel … … 2471 2495 stop 'lhf' 2472 2496 endif 2473 2497 2474 2498 ierr=nf90_inq_varid(nid,"lwup",var3didin(4)) 2475 2499 if(ierr/=nf90_noerr) then … … 2551 2575 !dimensions lecture 2552 2576 ! call catchaxis(nid,ntime,nlevel,time,z,ierr) 2553 2577 2554 2578 ierr = NF90_GET_VAR(nid,var3didin(1),zz) 2555 2579 if(ierr/=nf90_noerr) then … … 2558 2582 endif 2559 2583 ! write(*,*)'lecture zz ok',zz 2560 2584 2561 2585 ierr = NF90_GET_VAR(nid,var3didin(11),pres) 2562 2586 if(ierr/=nf90_noerr) then … … 2582 2606 endif 2583 2607 ! write(*,*)'lecture qv ok',qv 2584 2608 2585 2609 ierr = NF90_GET_VAR(nid,var3didin(14),u) 2586 2610 if(ierr/=nf90_noerr) then … … 2709 2733 ! write(*,*)'lecture omega ok',omega 2710 2734 2711 return 2735 return 2712 2736 end subroutine read_dice 2713 2737 !===================================================================== … … 2717 2741 !program reading initial profils and forcings of the Gabls4 case study 2718 2742 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 2719 2755 USE netcdf, ONLY: nf90_open,nf90_nowrite,nf90_noerr,nf90_strerror,nf90_inq_varid,nf90_get_var,& 2720 2756 nf90_inq_dimid,nf90_inquire_dimension … … 2727 2763 real*8 time(ntime) 2728 2764 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 2730 2766 ! dans un ordre inverse par rapport a la convention LMDZ 2731 2767 ! ==> il faut tout inverser (MPL 20141024) … … 2846 2882 !dimensions lecture 2847 2883 ! call catchaxis(nid,ntime,nlevel,time,z,ierr) 2848 2884 2849 2885 ierr = NF90_GET_VAR(nid,var3didin(1),zz_i) 2850 2886 if(ierr/=nf90_noerr) then … … 2852 2888 stop "getvarup" 2853 2889 endif 2854 2890 2855 2891 ierr = NF90_GET_VAR(nid,var3didin(2),depth_sn) 2856 2892 if(ierr/=nf90_noerr) then … … 2858 2894 stop "getvarup" 2859 2895 endif 2860 2896 2861 2897 ierr = NF90_GET_VAR(nid,var3didin(3),ug_i) 2862 2898 if(ierr/=nf90_noerr) then … … 2864 2900 stop "getvarup" 2865 2901 endif 2866 2902 2867 2903 ierr = NF90_GET_VAR(nid,var3didin(4),vg_i) 2868 2904 if(ierr/=nf90_noerr) then … … 2870 2906 stop "getvarup" 2871 2907 endif 2872 2908 2873 2909 ierr = NF90_GET_VAR(nid,var3didin(5),pf_i) 2874 2910 if(ierr/=nf90_noerr) then … … 2894 2930 stop "getvarup" 2895 2931 endif 2896 2932 2897 2933 ierr = NF90_GET_VAR(nid,var3didin(9),u_i) 2898 2934 if(ierr/=nf90_noerr) then … … 2900 2936 stop "getvarup" 2901 2937 endif 2902 2938 2903 2939 ierr = NF90_GET_VAR(nid,var3didin(10),v_i) 2904 2940 if(ierr/=nf90_noerr) then … … 2906 2942 stop "getvarup" 2907 2943 endif 2908 2944 2909 2945 ierr = NF90_GET_VAR(nid,var3didin(11),hadvt_i) 2910 2946 if(ierr/=nf90_noerr) then … … 2912 2948 stop "getvarup" 2913 2949 endif 2914 2950 2915 2951 ierr = NF90_GET_VAR(nid,var3didin(12),hadvq_i) 2916 2952 if(ierr/=nf90_noerr) then … … 2918 2954 stop "getvarup" 2919 2955 endif 2920 2956 2921 2957 ierr = NF90_GET_VAR(nid,var3didin(14),tsnow) 2922 2958 if(ierr/=nf90_noerr) then … … 2924 2960 stop "getvarup" 2925 2961 endif 2926 2962 2927 2963 ierr = NF90_GET_VAR(nid,var3didin(15),snow_dens) 2928 2964 if(ierr/=nf90_noerr) then … … 2952 2988 hadvq(k,:)=hadvq_i(nlevel+1-k,:) 2953 2989 enddo 2954 return 2990 return 2955 2991 end subroutine read_gabls4 2956 2992 !===================================================================== 2957 2993 2958 ! Reads CIRC input files 2994 ! Reads CIRC input files 2959 2995 2960 2996 SUBROUTINE read_circ(nlev_circ,cf,lwp,iwp,reliq,reice,t,z,p,pm,h2o,o3,sza) 2961 2997 2962 2998 parameter (ncm_1=49180) 2963 INCLUDE "YOMCST.h"2964 2999 2965 3000 real albsfc(ncm_1), albsfc_w(ncm_1) … … 2985 3020 open (15, file='cloud_input_case.txt', status='old') 2986 3021 open (16, file='sfcalbedo_input_case.txt', status='old') 2987 3022 2988 3023 ! Read scalar information 2989 3024 do iskip=1,5 … … 3018 3053 pm(il)=pm(il)*100. 3019 3054 enddo 3020 303 format (i8, 2f9.2, 10(2x,e13.7)) 3055 303 format (i8, 2f9.2, 10(2x,e13.7)) 3021 3056 close(13) 3022 3057 3023 3058 ! Read aerosol layer information 3024 3059 do iskip=1,3 … … 3033 3068 304 format (i8, f9.5, 2f8.3) 3034 3069 close(14) 3035 3070 3036 3071 ! Read cloud information 3037 3072 do iskip=1,3 … … 3057 3092 306 format(f10.1, 2f12.5, f14.8) 3058 3093 close(16) 3059 3060 return 3094 3095 return 3061 3096 end subroutine read_circ 3062 3097 !===================================================================== 3063 ! Reads RTMIP input files 3098 ! Reads RTMIP input files 3064 3099 3065 3100 SUBROUTINE read_rtmip(nlev_rtmip,play,plev,t,h2o,o3) 3066 3067 INCLUDE "YOMCST.h" 3101 3068 3102 3069 3103 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 50 50 USE dimensions_mod, ONLY: iim, jjm, llm, ndm 51 51 USE dimsoil_mod_h, ONLY: nsoilmx 52 USE 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 52 64 implicit none 53 65 54 INCLUDE "YOMCST.h" 66 55 67 !! INCLUDE "control.h" 56 68 INCLUDE "clesphys.h" -
LMDZ6/trunk/libf/phylmd/dyn1d/scm.f90
r5273 r5274 46 46 USE dimensions_mod, ONLY: iim, jjm, llm, ndm 47 47 USE dimsoil_mod_h, ONLY: nsoilmx 48 USE 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 48 60 implicit none 49 61 50 INCLUDE "YOMCST.h" 62 51 63 !! INCLUDE "control.h" 52 64 INCLUDE "clesphys.h"
Note: See TracChangeset
for help on using the changeset viewer.