source: CONFIG/publications/ICOLMDZORINCA_CO2_Transport_GMD_2023/INCA/src/INCA_MOD/chem_cons_mod.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: 3.7 KB
Line 
1!$Id: chem_cons_mod.F90 104 2008-12-23 10:28:51Z 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!!
11!! Anne Cozic, LSCE, anne.cozic@cea.fr
12!! Yann Meurdesoif, LSCE, yann.meurdesoif@cea.fr
13!!
14!! This software is a computer program whose purpose is to simulate the
15!! atmospheric gas phase and aerosol composition. The model is designed to be
16!! used within a transport model or a general circulation model. This version
17!! of INCA was designed to be coupled to the LMDz GCM. LMDz-INCA accounts
18!! for emissions, transport (resolved and sub-grid scale), photochemical
19!! transformations, and scavenging (dry deposition and washout) of chemical
20!! species and aerosols interactively in the GCM. Several versions of the INCA
21!! model are currently used depending on the envisaged applications with the
22!! chemistry-climate model.
23!!
24!! This software is governed by the CeCILL  license under French law and
25!! abiding by the rules of distribution of free software.  You can  use,
26!! modify and/ or redistribute the software under the terms of the CeCILL
27!! license as circulated by CEA, CNRS and INRIA at the following URL
28!! "http://www.cecill.info".
29!!
30!! As a counterpart to the access to the source code and  rights to copy,
31!! modify and redistribute granted by the license, users are provided only
32!! with a limited warranty  and the software's author,  the holder of the
33!! economic rights,  and the successive licensors  have only  limited
34!! liability.
35!!
36!! In this respect, the user's attention is drawn to the risks associated
37!! with loading,  using,  modifying and/or developing or reproducing the
38!! software by the user in light of its specific status of free software,
39!! that may mean  that it is complicated to manipulate,  and  that  also
40!! therefore means  that it is reserved for developers  and  experienced
41!! professionals having in-depth computer knowledge. Users are therefore
42!! encouraged to load and test the software's suitability as regards their
43!! requirements in conditions enabling the security of their systems and/or
44!! data to be ensured and,  more generally, to use and operate it in the
45!! same conditions as regards security.
46!!
47!! The fact that you are presently reading this means that you have had
48!! knowledge of the CeCILL license and that you accept its terms.
49!! =========================================================================
50#include <inca_define.h>
51
52MODULE CHEM_CONS
53
54  IMPLICIT NONE
55
56  REAL, PARAMETER ::  gravit = 9.80616    ! m2/s
57
58  !--------------------------------------------------------
59  !  Note: 365 day year inconsistent with LMDz (360 days) !!!
60  !--------------------------------------------------------
61  REAL, PARAMETER ::  dayspy = 365.       ! days per year
62  REAL, PARAMETER ::  boltz  = 1.3806e-23 ! JK-1
63  REAL, PARAMETER ::  uma    = 1.66e-27   ! kg
64
65  REAL, SAVE ::  r2d                            ! radians to degrees
66  REAL, SAVE ::  d2r                            ! degrees to radians
67  REAL, SAVE ::  rearth                         ! radius earth (m)
68!$OMP THREADPRIVATE(r2d,d2r,rearth)
69
70  REAL,SAVE,ALLOCATABLE ::  phi(:)                      ! GCM latitudes  in radians
71  REAL,SAVE,ALLOCATABLE ::  lambda(:)                   ! GCM longitudes in radians
72  REAL,SAVE,ALLOCATABLE ::  latwts(:)                   ! latitude weights
73!$OMP THREADPRIVATE(phi, lambda, latwts)
74 
75CONTAINS
76
77  SUBROUTINE INIT_CHEM_CONS
78    USE INCA_DIM
79    IMPLICIT NONE
80
81    ALLOCATE(phi(PLON))
82    ALLOCATE(lambda(PLON))
83    ALLOCATE(latwts(PLON))
84
85  END SUBROUTINE INIT_CHEM_CONS
86
87END MODULE CHEM_CONS
88
Note: See TracBrowser for help on using the repository browser.