Changeset 3701 for trunk/LMDZ.GENERIC/libf
- Timestamp:
- Mar 28, 2025, 5:52:58 PM (3 months ago)
- Location:
- trunk/LMDZ.GENERIC/libf
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/aeronostd/photochemistry_asis.F90
r3312 r3701 783 783 use tracer_h, only: nesp 784 784 use chimiedata_h 785 use callkeys_mod, only: jonline 785 use callkeys_mod, only: jonline, reactfile 786 786 787 787 implicit none … … 797 797 integer :: iq, ireact 798 798 799 character(len = 128) :: reactfile ! reactions table file name800 799 integer :: nbq ! number of species in reactions file 801 800 integer :: nlines ! number of lines in reactions file … … 828 827 qnreact = 0 829 828 830 write(*,*) "Read reaction file" 831 reactfile = "reactfile" ! default 832 call getin_p("reactfile",reactfile) ! default path 833 write(*,*) " reactfile = ",trim(reactfile) 834 835 call count_react(reactfile,nlines,nreact,nb_phot,nb_reaction_4,nb_reaction_3,nb_hv,nb_pfunc1,nb_pfunc2,nb_pfunc3) 829 call count_react(nlines,nreact,nb_phot,nb_reaction_4,nb_reaction_3,nb_hv,nb_pfunc1,nb_pfunc2,nb_pfunc3) 836 830 837 831 !!!!!!!!!!! Hard coding reaction !!!!!!!!!!!!!!!!!!!!!!!!!!! … … 885 879 jparamline(:) = '' 886 880 887 call get_react( reactfile,nlines,nreact,specheck,specheckr,specheckp,nbq,nb_phot,nb_reaction_4,nb_reaction_3)881 call get_react(nlines,nreact,specheck,specheckr,specheckp,nbq,nb_phot,nb_reaction_4,nb_reaction_3) 888 882 889 883 ! rewrite jlabel corretly for output … … 1161 1155 !***************************************************************** 1162 1156 1163 subroutine count_react( reactfile,nlines,nreact,nb_phot,nb_reaction_4,nb_reaction_3,nb_hv,nb_pfunc1,nb_pfunc2,nb_pfunc3)1157 subroutine count_react(nlines,nreact,nb_phot,nb_reaction_4,nb_reaction_3,nb_hv,nb_pfunc1,nb_pfunc2,nb_pfunc3) 1164 1158 1165 1159 !***************************************************************** … … 1168 1162 1169 1163 implicit none 1170 character(*), intent(in) :: reactfile ! name of the file to read1171 1164 integer, intent(inout) :: nlines ! number of lines in the file 1172 1165 integer, intent(out) :: nreact ! real number of reaction … … 1193 1186 1194 1187 open(402, form = 'formatted', status = 'old', & 1195 file = 'chemnetwork/'//trim(reactfile),iostat=ierr)1188 file =trim(reactfile),iostat=ierr) 1196 1189 1197 1190 if (ierr /= 0) THEN 1198 write(*,*)'Error : cannot open chemical reaction file : chemnetwork/'//trim(reactfile) 1199 write(*,*)'It should be in your simulation directory in chemnetwork directory' 1200 write(*,*)' You can change the input chemical reactions file name in' 1201 write(*,*)' callphys.def with:' 1202 write(*,*)' monoreact=filename or bimolreact=filename or quadrareact=filename' 1203 write(*,*)' depending on what chemical reaction type it is' 1191 write(*,*)'Error : cannot open chemical reaction file : '//trim(reactfile) 1192 write(*,*)'28/03/2025: New default value is network.def (in simulation folder)' 1193 write(*,*)'Former default is chemnetwork/reactfile' 1204 1194 call abort 1205 1195 end if … … 1257 1247 else 1258 1248 print*, 'Error in indice: wrong index coefficient rate line ',nlines 1259 print*, 'in file : chemnetwork/'//trim(reactfile)1249 print*, 'in file : '//trim(reactfile) 1260 1250 print*, 'It should be 0 for photolysis reations and 1 or 2 for the others' 1261 1251 print*, 'And not : ', typerate … … 1273 1263 !***************************************************************** 1274 1264 1275 subroutine get_react( reactfile,nlines,nreact,specheck,specheckr,specheckp, &1265 subroutine get_react(nlines,nreact,specheck,specheckr,specheckp, & 1276 1266 nbq,nb_phot,nb_reaction_4,nb_reaction_3) 1277 1267 … … 1284 1274 1285 1275 implicit none 1286 character(*), intent(in) :: reactfile ! name of the file to read1287 1276 integer, intent(in) :: nlines ! number of lines in the file 1288 1277 integer, intent(in) :: nreact ! real number of reaction in the file … … 1319 1308 1320 1309 open(402, form = 'formatted', status = 'old', & 1321 file = 'chemnetwork/'//trim(reactfile),iostat=ierr)1310 file =trim(reactfile),iostat=ierr) 1322 1311 1323 1312 if (ierr /= 0) THEN 1324 write(*,*)'Error : cannot open chemical reaction file : chemnetwork/'//trim(reactfile) 1325 write(*,*)'It should be in your simulation directory in chemnetwork directory' 1326 write(*,*)' You can change the input chemical reactions file name in' 1327 write(*,*)' callphys.def with:' 1328 write(*,*)' monoreact=filename or bimolreact=filename or quadrareact=filename' 1329 write(*,*)' depending on what chemical reaction type it is' 1313 write(*,*)'Error : cannot open chemical reaction file : '//trim(reactfile) 1314 write(*,*)'28/03/2025: New default value is network.def (in simulation folder)' 1315 write(*,*)'Former default is chemnetwork/reactfile' 1330 1316 call abort 1331 1317 end if -
trunk/LMDZ.GENERIC/libf/phystd/callkeys_mod.F90
r3662 r3701 90 90 logical,save :: haze 91 91 logical,save :: output_writediagspecUV 92 character(len = 128),save :: reactfile 92 93 !$OMP THREADPRIVATE(photochem,photoheat,jonline,depos,output_writediagspecUV) 93 94 logical,save :: calllott_nonoro -
trunk/LMDZ.GENERIC/libf/phystd/inifis_mod.F90
r3663 r3701 570 570 if (is_master) write(*,*)trim(rname)//": output_writediagspecUV = ",output_writediagspecUV 571 571 572 if (is_master) write(*,*)trim(rname)//": Chemical network file ?" 573 reactfile = 'network.def' ! default value 574 call getin_p("reactfile",reactfile) 575 if (is_master) write(*,*)trim(rname)//": chemical network file = ",trim(reactfile) 576 572 577 ! Global1D mean and solar zenith angle 573 578
Note: See TracChangeset
for help on using the changeset viewer.