- Timestamp:
- Oct 17, 2024, 5:22:35 PM (5 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/aeronomars/calchim_mod.F90
r3289 r3461 32 32 use comcstfi_h, only: pi 33 33 use chemistrydata_mod, only: read_phototable 34 use photolysis_mod, only: init_photolysis !, nphot34 use photolysis_mod, only: init_photolysis, nphot 35 35 use iono_h, only: temp_elect 36 36 use wstats_mod, only: wstats … … 168 168 integer :: ig_vl1 169 169 170 integer, save :: nb_reaction_3_max ! number of quadratic reactions 171 integer, save :: nb_reaction_4_max ! number of bimolecular reactions 172 integer, parameter :: nb_reaction_3_max0 = 6 ! number of quadratic reactions 173 integer, parameter :: nb_reaction_4_max0 = 31 ! number of bimolecular reactions 174 integer, parameter :: nquench = 9 ! number of quenching + heterogeneous reactions 175 integer, save :: nphotion ! number of photoionizations 176 integer, parameter :: nphotion0 = 0 ! number of photoionizations 177 integer, save :: nphot ! number of photolysis 178 integer, parameter :: nphot0 = 13 ! number of photolysis 179 ! is incremented by +2 in calchim if deuterium chemisty) 180 integer, parameter :: nb_reaction_4_ion = 64 ! quadratic reactions for ionosphere 181 integer, parameter :: nb_reaction_4_deut = 35 ! quadratic reactions for deuterium chem 182 integer, save :: nb_phot_max ! total number of photolysis+photoionizations+quenching reactions 183 integer, parameter :: nb_phot_max0 = 0 ! total number of photolysis+photoionizations+quenching reactions 184 !$OMP THREADPRIVATE(nb_reaction_3_max,nb_reaction_4_max,nphotion,nphot,nb_phot_max) 170 integer :: nb_reaction_3_max ! number of quadratic reactions 171 integer :: nb_reaction_4_max ! number of bimolecular reactions 172 integer :: nquench ! number of quenching + heterogeneous reactions 173 integer :: nphotion ! number of photoionizations 174 integer :: nb_reaction_4_ion ! quadratic reactions for ionosphere 175 integer :: nb_reaction_4_deut ! quadratic reactions for deuterium chem 176 integer :: nb_phot_max ! total number of photolysis+photoionizations+quenching reactions 177 185 178 186 179 real :: latvl1, lonvl1 … … 764 757 write(*,*) 'calchim: tracer indices=',niq(:) 765 758 766 nphot = nphot0 ! number of photolysis 767 ! is incremented by +2 in calchim if deuterium chemisty) 759 768 760 if (photochem) then 769 761 if (jonline) then 770 762 print*,'calchim: Read UV absorption cross-sections' 771 763 !Add two photodissociations in deuterium chemistry included 772 if(deutchem) nphot = nphot 0+ 2764 if(deutchem) nphot = nphot + 2 773 765 call init_photolysis ! on-line photolysis 774 766 else … … 851 843 if (photochem) then 852 844 ! set number of reactions, depending on ion chemistry or not 853 !nb_reaction_4_ion = 64854 !nb_reaction_4_deut = 35845 nb_reaction_4_ion = 64 846 nb_reaction_4_deut = 35 855 847 856 848 !Default numbers if no ion and no deuterium chemistry included 857 849 858 ! nb_reaction_4_max = 31 ! set number of bimolecular reactions 859 ! nb_reaction_3_max = 6 ! set number of quadratic reactions 860 ! nquench = 9 ! set number of quenching + heterogeneous 861 ! nphotion = 0 ! set number of photoionizations 862 nb_reaction_4_max = nb_reaction_4_max0 ! set number of bimolecular reactions 863 nb_reaction_3_max = nb_reaction_3_max0 ! set number of quadratic reactions 864 nphotion = nphotion0 ! set number of photoionizations 865 nb_phot_max = nb_phot_max0 850 nb_reaction_4_max = 31 ! set number of bimolecular reactions 851 nb_reaction_3_max = 6 ! set number of quadratic reactions 852 nquench = 9 ! set number of quenching + heterogeneous 853 nphotion = 0 ! set number of photoionizations 854 866 855 if (ionchem) then 867 nb_reaction_4_max = nb_reaction_4_max 0+ nb_reaction_4_ion868 nphotion = nphotion0 +18 ! set number of photoionizations856 nb_reaction_4_max = nb_reaction_4_max + nb_reaction_4_ion 857 nphotion = 18 ! set number of photoionizations 869 858 endif 870 859 if(deutchem) then … … 875 864 ! numerically as a photolysis: 876 865 877 nb_phot_max = nb_phot_max0 + nphot + nphotion + nquench 878 ! print*, 'nb_phot_max = ', nb_phot_max 879 ! print*, 'nb_reaction_4_max=', nb_reaction_4_max 880 ! print*, 'nb_reaction_3_max=', nb_reaction_3_max 866 nb_phot_max = nphot + nphotion + nquench 867 881 868 ! call main photochemistry routine 882 869
Note: See TracChangeset
for help on using the changeset viewer.