Ignore:
Timestamp:
Aug 18, 2021, 5:01:18 PM (3 years ago)
Author:
emillour
Message:

Mars GCM:
Make NO and O2 Nightglow emissions computations more flexible (reaction index

no longer hard coded in photochemistry.F90).

FGG

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/aeronomars/photochemistry.F90

    r2490 r2554  
    175175
    176176integer :: ilay
     177integer :: ind_norec
     178integer :: ind_orec
    177179
    178180real :: ctimestep           ! standard timestep for the chemistry (s)
     
    380382                   c(:,i_o2), c(:,i_o), c(:,i_n2), press, temp,           &
    381383                   temp_elect, hetero_dust, hetero_ice,                   &
    382                    surfdust1d, surfice1d, v_phot, v_3, v_4)
     384                   surfdust1d, surfice1d, v_phot, v_3, v_4, ind_norec,    &
     385                   ind_orec)
    383386
    384387!===================================================================
     
    492495
    493496!add calculation of NO and O2 nightglows
    494 em_no(:)=c(:,i_o)*c(:,i_n)*v_4(:,26)   !2.8e-17*(300./temp(:)))**0.5
    495 em_o2(:)=0.75*c(:,i_o)*c(:,i_o)*c(:,i_co2)*v_3(:,1)   !2.5*9.46e-34*exp(485./temp(:))*dens(:)
     497
     498em_no(:)=c(:,i_o)*c(:,i_n)*v_4(:,ind_norec)   !2.8e-17*(300./temp(:)))**0.5
     499em_o2(:)=0.75*c(:,i_o)*c(:,i_o)*c(:,i_co2)*v_3(:,ind_orec)   !2.5*9.46e-34*exp(485./temp(:))*dens(:)
    496500
    497501!===================================================================
     
    635639                          nb_phot_max, nphotion, lswitch, dens, co2, o2, o,      &
    636640                          n2, press, t, t_elect, hetero_dust, hetero_ice,        &
    637                           surfdust1d, surfice1d, v_phot, v_3, v_4)
     641                          surfdust1d, surfice1d, v_phot, v_3, v_4,ind_norec,   &
     642                          ind_orec)
    638643 
    639644!================================================================
     
    685690real (kind = 8), dimension(nlayer,nb_reaction_3_max) :: v_3
    686691real (kind = 8), dimension(nlayer,nb_reaction_4_max) :: v_4
     692integer :: ind_norec
     693integer :: ind_orec
    687694
    688695!----------------------------------------------------------------------
     
    758765      nb_reaction_3 = nb_reaction_3 + 1
    759766      v_3(:,nb_reaction_3) = a002(:)
     767      ind_orec=nb_reaction_3
    760768
    761769!---  a003: o + o3 -> o2 + o2
     
    11361144      nb_reaction_4 = nb_reaction_4 + 1
    11371145      v_4(:,nb_reaction_4) = d007(:)
     1146      ind_norec = nb_reaction_4
    11381147
    11391148!---  d008: n + ho2 -> no + oh
Note: See TracChangeset for help on using the changeset viewer.