source: trunk/LMDZ.MARS/libf/phymars/mzescape_fh.F @ 414

Last change on this file since 414 was 414, checked in by aslmd, 13 years ago

LMDZ.MARS : NEW NLTE MODEL FROM GRANADA AMIGOS

23/11/11 == FGG + MALV

New parameterization of the NLTE 15 micron cooling. The old parameterization is kept as an option, including or not variable atomic oxygen concentration. A new flag is introduced in callphys.def, nltemodel, to select which parameterization wants to be used (new one, old one with variable [O], or old one with fixed [O], see below). Includes many new subroutines and commons in phymars. Some existing routines are also modified:

-physiq.F. Call to the new subroutine NLTE_leedat in first call. Call to nltecool modified to allow for variable atomic oxygen. Depending on the value of nltemodel, the new subroutine NLTEdlvr09_TCOOL is called instead of nltecool.

-inifis.F. Reading of nltemodel is added.

-callkeys.h Declaration of nltemodel is added.

The following lines should be added to callphys.def (ideally after setting callnlte):

# NLTE 15um scheme to use.
# 0-> Old scheme, static oxygen
# 1-> Old scheme, dynamic oxygen
# 2-> New scheme
nltemodel = 2

A new directory, NLTEDAT, has to be included in datagcm.

Improvements into NLTE NIR heating parameterization to take into account variability with O/CO2 ratio and SZA. A new subroutine, NIR_leedat.F, and a new common, NIRdata.h, are included. A new flag, nircorr, is added in callphys.def, to include or not these corrections. The following files are modified:

-nirco2abs.F: nq and pq are added in the arguments. The corrections factors are interpolated to the GCM grid and included in the clculation. A new subroutine, interpnir, is added at the end of the file.

-physiq.F: Call to NIR_leedat added at first call. Modified call to nirco2abs

-inifis: Reading new flag nircorr.

-callkeys.h: Declaration of nircorr.

The following lines have to be added to callphys.def (ideally after callnirco2):

# NIR NLTE correction for variable SZA and O/CO2?
# matters only if callnirco2=T
# 0-> no correction
# 1-> include correction
nircorr=1

A new data file, NIRcorrection_feb2011.dat, has to be included in datagcm.

Small changes to the molecular diffusion scheme to fix the number of species considered, to avoid problems when compiling with more than 15 tracers (for example, when CH4 is included). Modified subroutines: aeronomars/moldiff.F and aeronomars/moldiffcoeff.F

File size: 2.8 KB
Line 
1c***********************************************************************
2        subroutine mzescape_fh(ig)                     
3             
4c       jul 2011 malv+fgg                               
5c***********************************************************************
6                                                           
7        implicit none                                 
8                                                           
9        include 'nltedefs.h'         
10        include 'nlte_matrix.h'     
11        include 'nlte_atm.h'
12        include 'tcr_15um.h'
13                                                           
14c local variables                               
15        integer         i, ib, ik, istyle
16        integer         ig  ! ADDED FOR TRACEBACK
17        real*8          tau_factor                     
18        real*8          aux(nl), aux2(nl), aux3(nl)   
19                                                           
20c***********************************************************************
21                                                           
22        call zero4v( aux, taustar12,tauinf121,tauii121, nl)
23        do ik=1,3                               
24          ib=ik+1                               
25          call mzescape ( ig,aux,aux2,aux3, ib, 1,irw_mztf,imu )         
26          tau_factor = 1.d0                     
27          if (ik.eq.1) tau_factor = dble(667.75/618.03)           
28          if (ik.eq.3) tau_factor = dble(667.75/720.806)   
29          do i=1,nl                                   
30            taustar12(i) = taustar12(i) + aux(i) * tau_factor           
31            tauinf121(i) = tauinf121(i) + aux2(i) * tau_factor         
32            tauii121(i) = tauii121(i) + aux3(i) * tau_factor           
33          enddo                                       
34        enddo                                         
35                                                           
36        istyle = 2                                     
37        call mzescape_normaliz ( taustar12, istyle )   
38                                                           
39                                                           
40                                                           
41c end                                           
42        return                                         
43        end                                           
44                                                           
45                                                           
46                                                           
47                                                           
48                                                           
49                                                           
50                                                           
51                                                           
52                                                           
Note: See TracBrowser for help on using the repository browser.