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