source: CONFIG/publications/ICOLMDZORINCA_CO2_Transport_GMD_2023/INCA/build/ppsrc/INCA_SRC/aerosolmain.f90 @ 6610

Last change on this file since 6610 was 6610, checked in by acosce, 10 months ago

INCA used for ICOLMDZORINCA_CO2_Transport_GMD_2023

File size: 6.4 KB
Line 
1
2
3
4
5
6
7
8
9
10
11
12!$Id: aerosolmain.F90 147 2009-11-20 13:29:01Z acosce $
13!! =========================================================================
14!! INCA - INteraction with Chemistry and Aerosols
15!!
16!! Copyright Laboratoire des Sciences du Climat et de l'Environnement (LSCE)
17!!           Unite mixte CEA-CNRS-UVSQ
18!!
19!! Contributors to this INCA subroutine:
20!!
21!! Michael Schulz, LSCE, Michael.Schulz@cea.fr
22!!
23!! Anne Cozic, LSCE, anne.cozic@cea.fr
24!! Yann Meurdesoif, LSCE, yann.meurdesoif@cea.fr
25!!
26!!
27!! This software is a computer program whose purpose is to simulate the
28!! atmospheric gas phase and aerosol composition. The model is designed to be
29!! used within a transport model or a general circulation model. This version
30!! of INCA was designed to be coupled to the LMDz GCM. LMDz-INCA accounts
31!! for emissions, transport (resolved and sub-grid scale), photochemical
32!! transformations, and scavenging (dry deposition and washout) of chemical
33!! species and aerosols interactively in the GCM. Several versions of the INCA
34!! model are currently used depending on the envisaged applications with the
35!! chemistry-climate model.
36!!
37!! This software is governed by the CeCILL  license under French law and
38!! abiding by the rules of distribution of free software.  You can  use,
39!! modify and/ or redistribute the software under the terms of the CeCILL
40!! license as circulated by CEA, CNRS and INRIA at the following URL
41!! "http://www.cecill.info".
42!!
43!! As a counterpart to the access to the source code and  rights to copy,
44!! modify and redistribute granted by the license, users are provided only
45!! with a limited warranty  and the software's author,  the holder of the
46!! economic rights,  and the successive licensors  have only  limited
47!! liability.
48!!
49!! In this respect, the user's attention is drawn to the risks associated
50!! with loading,  using,  modifying and/or developing or reproducing the
51!! software by the user in light of its specific status of free software,
52!! that may mean  that it is complicated to manipulate,  and  that  also
53!! therefore means  that it is reserved for developers  and  experienced
54!! professionals having in-depth computer knowledge. Users are therefore
55!! encouraged to load and test the software's suitability as regards their
56!! requirements in conditions enabling the security of their systems and/or
57!! data to be ensured and,  more generally, to use and operate it in the
58!! same conditions as regards security.
59!!
60!! The fact that you are presently reading this means that you have had
61!! knowledge of the CeCILL license and that you accept its terms.
62!! =========================================================================
63
64 
65
66SUBROUTINE AEROSOLMAIN(   & 
67   aerosol_couple        ,&
68   tr_seri               ,&
69   delt_lmdz             ,&        != pdtphys
70   pmid                  ,&        != pplay
71   pdel                  ,&     
72   flxrst                ,&        != prfl
73   flxrcv                ,&        != pmflxr
74   flxsst                ,&        != psfl
75   flxscv                ,&        != pmflxs
76   flxupd                ,&        != pmfu 
77   cldtop                ,&        != itop_con
78   cldbot                ,&        != ibas_con
79   zma                   ,&        != pphi
80   area                  ,&        != paire
81   nstep                 ,&        != nstep
82   rneb                  ,&        ! for chimiaq
83   t_seri                ,&        ! for chimiaq
84   rh                    ,&        ! for humidity growth
85   tau_inca              ,&        ! AOD for RF
86   piz_inca              ,&        ! SSA for RF
87   cg_inca               ,&        ! ASY for RF
88   rfname                ,&        ! RF diagnostics names
89   ccm                   ,&        ! CCM for RF
90   lafin_inca) 
91
92  USE XIOS_INCA
93  USE SPECIES_NAMES
94  USE CONST_LMDZ, ONLY : config_inca 
95  USE INCA_DIM
96  USE CHEM_CONTROLS
97  USE PARAM_CHEM
98  USE AEROSOL_DIAG, ONLY : tau_allaer, piz_allaer, cg_allaer, mrfname, naero_grp, ccm_aer
99  USE PRINT_INCA
100
101     
102  IMPLICIT NONE
103
104  LOGICAL, INTENT(in)         :: aerosol_couple            ! flag pour le couplage aerosol - climat
105  REAL, INTENT(in)            :: delt_lmdz                 ! timestep in seconds of physics
106  REAL, INTENT(inout)         :: tr_seri(PLON,PLEV,8)  ! xported species ( mmr )
107  REAL, INTENT(in)            :: pmid(PLON,PLEV)           !midpoint press ( pascals )
108  REAL, INTENT(in)            :: pdel(PLON,PLEV)           !delta press across midpoints
109  REAL, INTENT(in)            :: flxrst(PLON,PLEVP)        !liquid water flux (stratiform) kgH2O/m2/s
110  REAL, INTENT(in)            :: flxrcv(PLON,PLEVP)        !liquid water flux (convective) kgH2O/m2/s
111  REAL, INTENT(in)            :: flxsst(PLON,PLEVP)        !solid  water flux (stratiform) kgH2O/m2/s
112  REAL, INTENT(in)            :: flxscv(PLON,PLEVP)        !solid  water flux (convection) kgH2O/m2/s
113  REAL, INTENT(in)            :: flxupd(PLON,PLEV)         !entrainment flux kgAIR/m2/s
114  REAL, INTENT(in)            :: zma(PLON,PLEV)            !abs geopot height at midpoi
115  REAL, INTENT(in)            :: area(PLON)                !surface area of grid box
116  REAL, INTENT(in)            :: rh(PLON,PLEV)             !relative humidity
117  INTEGER, INTENT(IN)         :: cldtop(PLON)              !cloud top level ( 1 ... PLEV )
118  INTEGER, INTENT(IN)         :: cldbot(PLON)              !cloud bottom level ( 1 ... PLEV ) 
119  INTEGER, INTENT(IN)         :: nstep                     !model time step
120  LOGICAL, INTENT(in)         :: lafin_inca
121  CHARACTER*4, INTENT(inout)  :: rfname(naero_grp) 
122  REAL, INTENT(inout)         :: tau_inca(PLON,PLEV,naero_grp,2)   
123  REAL, INTENT(inout)         :: piz_inca(PLON,PLEV,naero_grp,2)   
124  REAL, INTENT(inout)         :: cg_inca(PLON,PLEV,naero_grp,2)   
125  REAL, INTENT(inout)         :: ccm(PLON,PLEV,2)          !soluble aerosol mass, total(1) and natural(2)
126                                                           !corresponding to CCN concentration for indirect effect
127
128  REAL ai(PLON)                              ! aerosol index
129
130  ! variables for chimieaq
131  REAL, INTENT(in) :: rneb(PLON,PLEV)        ! fraction nuageuse (grande echelle)
132  REAL, INTENT(in) :: t_seri(PLON,PLEV)      ! temperature
133  REAL :: qliq                               ! kg kg-1 prescribed LWC for stratiform clouds
134  PARAMETER (qliq=0.5e-3)
135!
136!  variable locale
137  REAL ::     zflxrcv(PLON,PLEVP) !solid  water flux (stratiform) kgH2O/m2/s
138  REAL ::     zflxscv(PLON,PLEVP) !solid  water flux (convection) kgH2O/m2/s
139
140
141
142END SUBROUTINE AEROSOLMAIN
143     
144
Note: See TracBrowser for help on using the repository browser.