Changeset 4111 for trunk/LMDZ.VENUS/libf


Ignore:
Timestamp:
Mar 9, 2026, 4:14:19 PM (3 weeks ago)
Author:
flefevre
Message:

Photochemistry: bug fix following the deletion of the S4 + hv -> S3 + S channel

Location:
trunk/LMDZ.VENUS/libf/phyvenus
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.VENUS/libf/phyvenus/photochemistry_venus.F90

    r4108 r4111  
    44!
    55!     Authors: Franck Lefevre, Francisco Gonzalez-Galindo
     6
    67!     -------
    78!
    8 !     Version: 14/11/2020
     9!     Version: 09/03/2026
    910!
    1011!     ASIS scheme : for details on the method see
     
    733734
    734735!===========================================================
    735 !      S4 + hv -> S3 + S
     736!      S8 + hv -> S4 + S4
    736737!===========================================================
    737738
    738739nb_phot = nb_phot + 1
    739740
    740 indice_phot(nb_phot) = z3spec(1.0, i_s4, 1.0, i_s3, 1., i_s)
    741 
    742 !===========================================================
    743 !      S8 + hv -> S4 + S4
    744 !===========================================================
    745 
    746 nb_phot = nb_phot + 1
    747 
    748741indice_phot(nb_phot) = z3spec(1.0, i_s8, 2.0, i_s4, 0., i_dummy)
    749742
    750 !Only if ion chemistry included
     743! if ion chemistry included
     744
    751745if (ok_ionchem) then
    752746
  • trunk/LMDZ.VENUS/libf/phyvenus/photolysis_mod.F90

    r4105 r4111  
    55! photolysis
    66
    7   integer, save :: nphot = 34             ! number of photolysis
     7  integer, save :: nphot = 33             ! number of photolysis
    88
    99!$OMP THREADPRIVATE(nphot)
     
    38543854!=  PURPOSE:                                                                 =*
    38553855!=  Read S4 cross-sections                                                   =*
    3856 !=  Billmers and Smith(1991) J. Phys. Chem. ; MPI-Mainz UV/VIS Spectral Atlas=*
    38573856!-----------------------------------------------------------------------------*
    38583857!=  PARAMETERS:                                                              =*
     
    38873886
    38883887!*** Billmers and Smith(1991) J. Phys. Chem. ; MPI-Mainz UV/VIS Spectral Atlas
    3889 
    3890       !fil = 'cross_sections/s4_cross_sections_Billmers1991.txt'
     3888!*** Frandsen (2025) Personal communication
     3889
     3890!     fil = 'cross_sections/s4_cross_sections_Billmers1991.txt'
    38913891      fil = 'cross_sections/s4_cross_sections_frandsen.txt'
    3892       print*, 'section efficace S4: ', fil
     3892
     3893!     print*, 'section efficace S4: ', fil
    38933894
    38943895      if(is_master) then
    38953896
    3896          !n = 7
    3897          n = 945
     3897!     n = 7     ! billmers and smith 1991
     3898      n = 945   ! frandsen 2025
     3899
    38983900      OPEN(kin,FILE=fil,STATUS='OLD')
    38993901      DO i = 1,4
     
    39113913
    39123914      CALL inter2(nw,wl,yg,n,x1,y1,ierr)
    3913       print*,'S4 cross sections',wl
    3914 !      print*,'S4 cross sections',yg
    39153915 
    39163916      IF (ierr .NE. 0) THEN
     
    39193919      ENDIF
    39203920
    3921 !      DO iw = 1,nw
    3922 !              if (wl(iw) <= 492.) then
    3923 !                yg1(iw) = 1./3. * yg(iw) !S4 + hv -> S2 + S2
    3924 !                yg2(iw) = 2./3. * yg(iw) !S4 + hv -> S3 + S
    3925 !              else
    3926 !                yg1(iw) = 1.*yg(iw)
    3927 !                yg2(iw) = 0.
    3928 !            end if
    3929 !      enddo     
    3930 
    3931 !     print*,'yg',yg
    3932 !     print*,'yg1',yg1
    3933 !     print*,'yg2',yg2
     3921!
     3922!      billmers and smith 1991
     3923!
     3924!      do iw = 1,nw
     3925!         if (wl(iw) <= 492.) then
     3926!            yg1(iw) = 1./3. * yg(iw) !S4 + hv -> S2 + S2
     3927!            yg2(iw) = 2./3. * yg(iw) !S4 + hv -> S3 + S
     3928!         else
     3929!            yg1(iw) = 1.*yg(iw)
     3930!            yg2(iw) = 0.
     3931!         end if
     3932!      end do     
    39343933
    39353934      endif !is_master
    39363935
    39373936      call bcast(yg)
    3938       !call bcast(yg1)
    3939       !call bcast(yg2)
     3937!     call bcast(yg1)
     3938!     call bcast(yg2)
    39403939 
    39413940      end subroutine rdxss4           
  • trunk/LMDZ.VENUS/libf/phyvenus/photolysis_online.F

    r4108 r4111  
    152152      j_no         = 28     ! no + hv         -> n + o
    153153      j_n2         = 29     ! n2 + hv         -> n(2d) + n
    154       j_h2s        = 30     ! h2s + hv    -> hs + h
    155       j_s3         = 31     ! s3 + hv     -> s2 + s
    156       j_s4         = 32     ! s4 + hv     -> s2 + s2
    157       j_s8         = 33     ! s8 + hv     -> s4 + s4     
     154      j_h2s        = 30     ! h2s + hv        -> hs + h
     155      j_s3         = 31     ! s3 + hv         -> s2 + s
     156      j_s4         = 32     ! s4 + hv         -> s2 + s2
     157      j_s8         = 33     ! s8 + hv         -> s4 + s4     
    158158
    159159!     j_hdo_od  =           ! hdo + hv        -> od + h
Note: See TracChangeset for help on using the changeset viewer.