Ignore:
Timestamp:
Apr 22, 2024, 6:44:48 PM (8 months ago)
Author:
yjaziri
Message:

Generic PCM:

Photochemistry: correction for using diurnal equal true in 1D
No correction factor with diurnal equal true for photolysis rate
+ writediagspecUV change name to flux_surf for clarity

YJ

Location:
trunk/LMDZ.GENERIC/libf/aeronostd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/aeronostd/calchim_asis.F90

    r3309 r3312  
    419419
    420420            !flux at the surface
    421             call writediagspecUV(ngrid,"flux","flux(lon,lat,band)","photon.s-1.nm-1.cm-2",3,fluxUV(:,:,1))
     421            call writediagspecUV(ngrid,"flux_surf","Surface flux(lon,lat,band)","photon.s-1.nm-1.cm-2",3,fluxUV(:,:,1))
    422422
    423423         endif ! end jonline
  • trunk/LMDZ.GENERIC/libf/aeronostd/photochemistry_asis.F90

    r3309 r3312  
    169169      call photolysis_online(nlayer, alt, press, temp, zmmean, rm,   &
    170170                             tau, sza, dist_sol, v_phot, e_phot, ig, ngrid, nreact)
    171       if (ngrid.eq.1) then
    172         do iphot = 1,nb_phot_hv_max
    173           v_phot(:,iphot) = v_phot(:,iphot)* 0.25 / cos(sza*pi/180.) ! globally averaged = divide by 4
    174           e_phot(:,iphot) = e_phot(:,iphot)* 0.25 / cos(sza*pi/180.) ! globally averaged = divide by 4
    175         end do
    176       elseif(diurnal .eqv. .false.) then
    177         do iphot = 1,nb_phot_hv_max
    178           v_phot(:,iphot) = v_phot(:,iphot) * fractcol
    179           e_phot(:,iphot) = e_phot(:,iphot) * fractcol
    180         end do
     171      if (diurnal .eqv. .false.) then
     172        if (ngrid.eq.1) then
     173          do iphot = 1,nb_phot_hv_max
     174            v_phot(:,iphot) = v_phot(:,iphot)* 0.25 / cos(sza*pi/180.) ! globally averaged = divide by 4
     175            e_phot(:,iphot) = e_phot(:,iphot)* 0.25 / cos(sza*pi/180.) ! globally averaged = divide by 4
     176          end do
     177        else
     178          do iphot = 1,nb_phot_hv_max
     179            v_phot(:,iphot) = v_phot(:,iphot) * fractcol
     180            e_phot(:,iphot) = e_phot(:,iphot) * fractcol
     181          end do
     182        endif
    181183      endif
    182184   else ! night
Note: See TracChangeset for help on using the changeset viewer.