!$Id: aerosolmain.F90 147 2009-11-20 13:29:01Z acosce $ !! ========================================================================= !! INCA - INteraction with Chemistry and Aerosols !! !! Copyright Laboratoire des Sciences du Climat et de l'Environnement (LSCE) !! Unite mixte CEA-CNRS-UVSQ !! !! Contributors to this INCA subroutine: !! !! Michael Schulz, LSCE, Michael.Schulz@cea.fr !! !! Anne Cozic, LSCE, anne.cozic@cea.fr !! Yann Meurdesoif, LSCE, yann.meurdesoif@cea.fr !! !! !! This software is a computer program whose purpose is to simulate the !! atmospheric gas phase and aerosol composition. The model is designed to be !! used within a transport model or a general circulation model. This version !! of INCA was designed to be coupled to the LMDz GCM. LMDz-INCA accounts !! for emissions, transport (resolved and sub-grid scale), photochemical !! transformations, and scavenging (dry deposition and washout) of chemical !! species and aerosols interactively in the GCM. Several versions of the INCA !! model are currently used depending on the envisaged applications with the !! chemistry-climate model. !! !! This software is governed by the CeCILL license under French law and !! abiding by the rules of distribution of free software. You can use, !! modify and/ or redistribute the software under the terms of the CeCILL !! license as circulated by CEA, CNRS and INRIA at the following URL !! "http://www.cecill.info". !! !! As a counterpart to the access to the source code and rights to copy, !! modify and redistribute granted by the license, users are provided only !! with a limited warranty and the software's author, the holder of the !! economic rights, and the successive licensors have only limited !! liability. !! !! In this respect, the user's attention is drawn to the risks associated !! with loading, using, modifying and/or developing or reproducing the !! software by the user in light of its specific status of free software, !! that may mean that it is complicated to manipulate, and that also !! therefore means that it is reserved for developers and experienced !! professionals having in-depth computer knowledge. Users are therefore !! encouraged to load and test the software's suitability as regards their !! requirements in conditions enabling the security of their systems and/or !! data to be ensured and, more generally, to use and operate it in the !! same conditions as regards security. !! !! The fact that you are presently reading this means that you have had !! knowledge of the CeCILL license and that you accept its terms. !! ========================================================================= SUBROUTINE AEROSOLMAIN( & aerosol_couple ,& tr_seri ,& delt_lmdz ,& != pdtphys pmid ,& != pplay pdel ,& flxrst ,& != prfl flxrcv ,& != pmflxr flxsst ,& != psfl flxscv ,& != pmflxs flxupd ,& != pmfu cldtop ,& != itop_con cldbot ,& != ibas_con zma ,& != pphi area ,& != paire nstep ,& != nstep rneb ,& ! for chimiaq t_seri ,& ! for chimiaq rh ,& ! for humidity growth tau_inca ,& ! AOD for RF piz_inca ,& ! SSA for RF cg_inca ,& ! ASY for RF rfname ,& ! RF diagnostics names ccm ,& ! CCM for RF lafin_inca) USE XIOS_INCA USE SPECIES_NAMES USE CONST_LMDZ, ONLY : config_inca USE INCA_DIM USE CHEM_CONTROLS USE PARAM_CHEM USE AEROSOL_DIAG, ONLY : tau_allaer, piz_allaer, cg_allaer, mrfname, naero_grp, ccm_aer USE PRINT_INCA IMPLICIT NONE LOGICAL, INTENT(in) :: aerosol_couple ! flag pour le couplage aerosol - climat REAL, INTENT(in) :: delt_lmdz ! timestep in seconds of physics REAL, INTENT(inout) :: tr_seri(PLON,PLEV,8) ! xported species ( mmr ) REAL, INTENT(in) :: pmid(PLON,PLEV) !midpoint press ( pascals ) REAL, INTENT(in) :: pdel(PLON,PLEV) !delta press across midpoints REAL, INTENT(in) :: flxrst(PLON,PLEVP) !liquid water flux (stratiform) kgH2O/m2/s REAL, INTENT(in) :: flxrcv(PLON,PLEVP) !liquid water flux (convective) kgH2O/m2/s REAL, INTENT(in) :: flxsst(PLON,PLEVP) !solid water flux (stratiform) kgH2O/m2/s REAL, INTENT(in) :: flxscv(PLON,PLEVP) !solid water flux (convection) kgH2O/m2/s REAL, INTENT(in) :: flxupd(PLON,PLEV) !entrainment flux kgAIR/m2/s REAL, INTENT(in) :: zma(PLON,PLEV) !abs geopot height at midpoi REAL, INTENT(in) :: area(PLON) !surface area of grid box REAL, INTENT(in) :: rh(PLON,PLEV) !relative humidity INTEGER, INTENT(IN) :: cldtop(PLON) !cloud top level ( 1 ... PLEV ) INTEGER, INTENT(IN) :: cldbot(PLON) !cloud bottom level ( 1 ... PLEV ) INTEGER, INTENT(IN) :: nstep !model time step LOGICAL, INTENT(in) :: lafin_inca CHARACTER*4, INTENT(inout) :: rfname(naero_grp) REAL, INTENT(inout) :: tau_inca(PLON,PLEV,naero_grp,2) REAL, INTENT(inout) :: piz_inca(PLON,PLEV,naero_grp,2) REAL, INTENT(inout) :: cg_inca(PLON,PLEV,naero_grp,2) REAL, INTENT(inout) :: ccm(PLON,PLEV,2) !soluble aerosol mass, total(1) and natural(2) !corresponding to CCN concentration for indirect effect REAL ai(PLON) ! aerosol index ! variables for chimieaq REAL, INTENT(in) :: rneb(PLON,PLEV) ! fraction nuageuse (grande echelle) REAL, INTENT(in) :: t_seri(PLON,PLEV) ! temperature REAL :: qliq ! kg kg-1 prescribed LWC for stratiform clouds PARAMETER (qliq=0.5e-3) ! ! variable locale REAL :: zflxrcv(PLON,PLEVP) !solid water flux (stratiform) kgH2O/m2/s REAL :: zflxscv(PLON,PLEVP) !solid water flux (convection) kgH2O/m2/s END SUBROUTINE AEROSOLMAIN