- Timestamp:
- Nov 27, 2025, 5:24:15 PM (6 days ago)
- File:
-
- 1 edited
-
trunk/LMDZ.PLUTO/libf/phypluto/dyn1d/rcm1d.F (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.PLUTO/libf/phypluto/dyn1d/rcm1d.F
r3916 r3978 22 22 use time_phylmdz_mod, only: daysec, dtphys, diagfi_output_rate, 23 23 & nday 24 use callkeys_mod, only: tracer, specOLR,pceil,haze 24 use callkeys_mod, only: tracer, specOLR,pceil,haze, 25 & callmufi,callmuclouds 25 26 USE comvert_mod, ONLY: ap,bp,aps,bps,pa,preff, sig, 26 27 & presnivs,pseudoalt,scaleheight … … 79 80 INTEGER lecttsoil ! lecture of tsoil from proftsoil 80 81 INTEGER lecthaze ! lecture of haze from profhaze 82 INTEGER lectC2H2 ! lecture of gases from profC2H2 83 INTEGER lectC2H6 ! lecture of gases from profC2H6 84 INTEGER lectC4H2 ! lecture of gases from profC4H2 85 INTEGER lectC6H6 ! lecture of gases from profC6H6 86 INTEGER lectHCN ! lecture of gases from profHCN 81 87 REAL day ! date during the run 82 88 INTEGER day_step ! number of time steps per day … … 96 102 integer :: i_co_ice=0 ! tracer index of co ice 97 103 integer :: i_co_gas=0 ! tracer index of co gas 104 integer :: i_C2H2_mugas=0 ! tracer index of C2H2 gas 105 integer :: i_C2H6_mugas=0 ! tracer index of C2H6 gas 106 integer :: i_C4H2_mugas=0 ! tracer index of C4H2 gas 107 integer :: i_C6H6_mugas=0 ! tracer index of C6H6 gas 108 integer :: i_HCN_mugas=0 ! tracer index of HCN gas 98 109 integer :: i_prec_haze=0 ! tracer index of haze 99 110 integer :: i_haze=0 ! tracer index of haze … … 343 354 elseif (tname(iq)=="co_gas") then 344 355 i_co_gas=iq 356 elseif (tname(iq)=="C2H2_mugas") then 357 i_C2H2_mugas=iq 358 elseif (tname(iq)=="C2H6_mugas") then 359 i_C2H6_mugas=iq 360 elseif (tname(iq)=="C4H2_mugas") then 361 i_C4H2_mugas=iq 362 elseif (tname(iq)=="C6H6_mugas") then 363 i_C6H6_mugas=iq 364 elseif (tname(iq)=="HCN_mugas") then 365 i_HCN_mugas=iq 345 366 elseif (tname(iq)=="haze") then 346 367 i_haze=iq … … 909 930 endif 910 931 endif 911 ! Initialize cloud fraction and oceanic ice !AF24: removed 912 ! Initialize slab ocean !AF24: removed 913 ! Initialize chemical species !AF24: removed photochem 932 933 ! Initialize gas profiles for clouds 934 ! ------------------------------------------ 935 if (callmufi.and.callmuclouds) then 936 lectC2H2 = 0 ! default value for lectC2H2 937 call getin("lectC2H2",lectC2H2) 938 939 if (lectC2H2 == 1) then 940 OPEN(15,file='profC2H2',status='old',form='formatted',err=501) 941 DO iq = 1, nq 942 if (iq.eq.i_C2H2_mugas) then 943 DO ilayer=1,nlayer 944 READ (15,*) q(ilayer,iq) 945 ENDDO 946 endif 947 ENDDO 948 GOTO 601 949 501 STOP'Problem with profC2H2 file' 950 601 CONTINUE 951 CLOSE(15) 952 endif 953 954 lectC2H6 = 0 ! default value for lectC2H6 955 call getin("lectC2H6",lectC2H6) 956 957 if (lectC2H6 == 1) then 958 OPEN(15,file='profC2H6',status='old',form='formatted',err=502) 959 DO iq = 1, nq 960 if (iq.eq.i_C2H6_mugas) then 961 DO ilayer=1,nlayer 962 READ (15,*) q(ilayer,iq) 963 ENDDO 964 endif 965 ENDDO 966 GOTO 602 967 502 STOP'Problem with profC2H6 file' 968 602 CONTINUE 969 CLOSE(15) 970 endif 971 972 lectC4H2 = 0 ! default value for lectC4H2 973 call getin("lectC4H2",lectC4H2) 974 975 if (lectC4H2 == 1) then 976 OPEN(15,file='profC4H2',status='old',form='formatted',err=503) 977 DO iq = 1, nq 978 if (iq.eq.i_C4H2_mugas) then 979 DO ilayer=1,nlayer 980 READ (15,*) q(ilayer,iq) 981 ENDDO 982 endif 983 ENDDO 984 GOTO 603 985 503 STOP'Problem with profC4H2 file' 986 603 CONTINUE 987 CLOSE(15) 988 endif 989 990 lectC6H6 = 0 ! default value for lectC6H6 991 call getin("lectC6H6",lectC6H6) 992 993 if (lectC6H6 == 1) then 994 OPEN(15,file='profC6H6',status='old',form='formatted',err=504) 995 DO iq = 1, nq 996 if (iq.eq.i_C6H6_mugas) then 997 DO ilayer=1,nlayer 998 READ (15,*) q(ilayer,iq) 999 ENDDO 1000 endif 1001 ENDDO 1002 GOTO 604 1003 504 STOP'Problem with profC6H6 file' 1004 604 CONTINUE 1005 CLOSE(15) 1006 endif 1007 1008 lectHCN = 0 ! default value for lectHCN 1009 call getin("lectHCN",lectHCN) 1010 1011 if (lectHCN == 1) then 1012 OPEN(15,file='profHCN',status='old',form='formatted',err=505) 1013 DO iq = 1, nq 1014 if (iq.eq.i_HCN_mugas) then 1015 DO ilayer=1,nlayer 1016 READ (15,*) q(ilayer,iq) 1017 ENDDO 1018 endif 1019 ENDDO 1020 GOTO 605 1021 505 STOP'Problem with profHCN file' 1022 605 CONTINUE 1023 CLOSE(15) 1024 endif 1025 endif ! end of callmufi.and.callmuclouds 914 1026 915 1027
Note: See TracChangeset
for help on using the changeset viewer.
