source: CONFIG/publications/ICOLMDZORINCA_CO2_Transport_GMD_2023/INCA/src/INCA_SRC/set_ub_col.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: 4.8 KB
Line 
1!$Id: set_ub_col.F90 123 2009-03-27 10:38:52Z acosce $
2!! =========================================================================
3!! INCA - INteraction with Chemistry and Aerosols
4!!
5!! Copyright Laboratoire des Sciences du Climat et de l'Environnement (LSCE)
6!!           Unite mixte CEA-CNRS-UVSQ
7!!
8!! Contributors to this INCA subroutine:
9!!
10!! Didier Hauglustaine, LSCE, hauglustaine@cea.fr
11!! Stacy Walters, NCAR, stacy@ucar.edu
12!!
13!! Anne Cozic, LSCE, anne.cozic@cea.fr
14!! Yann Meurdesoif, LSCE, yann.meurdesoif@cea.fr
15!!
16!! This software is a computer program whose purpose is to simulate the
17!! atmospheric gas phase and aerosol composition. The model is designed to be
18!! used within a transport model or a general circulation model. This version
19!! of INCA was designed to be coupled to the LMDz GCM. LMDz-INCA accounts
20!! for emissions, transport (resolved and sub-grid scale), photochemical
21!! transformations, and scavenging (dry deposition and washout) of chemical
22!! species and aerosols interactively in the GCM. Several versions of the INCA
23!! model are currently used depending on the envisaged applications with the
24!! chemistry-climate model.
25!!
26!! This software is governed by the CeCILL  license under French law and
27!! abiding by the rules of distribution of free software.  You can  use,
28!! modify and/ or redistribute the software under the terms of the CeCILL
29!! license as circulated by CEA, CNRS and INRIA at the following URL
30!! "http://www.cecill.info".
31!!
32!! As a counterpart to the access to the source code and  rights to copy,
33!! modify and redistribute granted by the license, users are provided only
34!! with a limited warranty  and the software's author,  the holder of the
35!! economic rights,  and the successive licensors  have only  limited
36!! liability.
37!!
38!! In this respect, the user's attention is drawn to the risks associated
39!! with loading,  using,  modifying and/or developing or reproducing the
40!! software by the user in light of its specific status of free software,
41!! that may mean  that it is complicated to manipulate,  and  that  also
42!! therefore means  that it is reserved for developers  and  experienced
43!! professionals having in-depth computer knowledge. Users are therefore
44!! encouraged to load and test the software's suitability as regards their
45!! requirements in conditions enabling the security of their systems and/or
46!! data to be ensured and,  more generally, to use and operate it in the
47!! same conditions as regards security.
48!!
49!! The fact that you are presently reading this means that you have had
50!! knowledge of the CeCILL license and that you accept its terms.
51!! =========================================================================
52
53#include <inca_define.h>
54
55SUBROUTINE SET_UB_COL( &
56   col_dens   , &
57   vmr        , &
58   invariants , &
59   pdel )
60  !---------------------------------------------------------------
61  !        ... Set the column densities at the upper boundary
62  ! Stacy Walters, NCAR, 1998.
63  ! Modified by Didier Hauglustaine, IPSL, for LMDZ/INCA, 1999.
64  !---------------------------------------------------------------
65
66  USE SPECIES_NAMES
67  USE INCA_DIM
68  USE PARAM_CHEM
69  USE RATE_INDEX_MOD
70
71  IMPLICIT NONE
72
73  !---------------------------------------------------------------
74  !        ... Dummy args
75  !---------------------------------------------------------------
76# if NCOL != 0
77  REAL, INTENT(out) ::    col_dens(PLON,PLEV,NCOL)  ! /cm**2
78# else
79  REAL, INTENT(out) ::    col_dens(1)
80# endif
81  REAL, INTENT(in)  ::    vmr(PLON,PLEV,PCNST)     ! xported species vmr
82  REAL, INTENT(in)  ::    pdel(PLON,PLEV)           
83  REAL, INTENT(in)  ::    invariants(PLON,PLEV,NFS)    ! invariants density
84 
85  !---------------------------------------------------------------
86  !        NOTE: xfactor = 10.*R/(K*g) in cgs units.
87  !              The factor 10. is to convert pdel
88  !              from pascals to dyne/cm**2.
89  !---------------------------------------------------------------
90  REAL, PARAMETER :: xfactor = 2.8704e21/(9.80616*1.38044)
91  REAL, PARAMETER ::  rma = 28./48.
92
93  !---------------------------------------------------------------
94  ! ... Assign column density at the upper boundary
95  !     Add the column at the stratopause based on Brasseur & Solomon
96  !     The first column is O3 and the second is O2.
97  !---------------------------------------------------------------
98  !Add tail at 80km. DH.
99
100#ifdef NMHC
101  col_dens(:,PLEV,1) = xfactor * pdel(:PLON,PLEV) * vmr(:,PLEV,id_O3) + 1.1e14
102  col_dens(:,PLEV,2) = xfactor * pdel(:PLON,PLEV) * .21e0 + 4.2e19
103
104  IF (trim(flag_o3) .EQ. 'o3lin') THEN
105     col_dens(:,PLEV,3) = xfactor * pdel(:PLON,PLEV) * vmr(:,PLEV,id_O3L) + 1.1e14
106  ENDIF
107#else
108
109 col_dens(:,PLEV,1) = xfactor * pdel(:PLON,PLEV) * (rma*invariants(:,PLEV,inv_O3)/invariants(:,PLEV,inv_M)) + 5.8e16
110 col_dens(:,PLEV,2) = xfactor * pdel(:PLON,PLEV) * .21e0 + 7.5e21
111
112#endif
113
114END SUBROUTINE SET_UB_COL
Note: See TracBrowser for help on using the repository browser.