1 | !$Id: resistance_diagnose_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 | !! Peter Hess, NCAR |
---|
11 | !! Jean-Francois Lamarque, NCAR |
---|
12 | !! |
---|
13 | !! |
---|
14 | !! Anne Cozic, LSCE, anne.cozic@cea.fr |
---|
15 | !! Yann Meurdesoif, LSCE, yann.meurdesoif@cea.fr |
---|
16 | !! |
---|
17 | !! This software is a computer program whose purpose is to simulate the |
---|
18 | !! atmospheric gas phase and aerosol composition. The model is designed to be |
---|
19 | !! used within a transport model or a general circulation model. This version |
---|
20 | !! of INCA was designed to be coupled to the LMDz GCM. LMDz-INCA accounts |
---|
21 | !! for emissions, transport (resolved and sub-grid scale), photochemical |
---|
22 | !! transformations, and scavenging (dry deposition and washout) of chemical |
---|
23 | !! species and aerosols interactively in the GCM. Several versions of the INCA |
---|
24 | !! model are currently used depending on the envisaged applications with the |
---|
25 | !! chemistry-climate model. |
---|
26 | !! |
---|
27 | !! This software is governed by the CeCILL license under French law and |
---|
28 | !! abiding by the rules of distribution of free software. You can use, |
---|
29 | !! modify and/ or redistribute the software under the terms of the CeCILL |
---|
30 | !! license as circulated by CEA, CNRS and INRIA at the following URL |
---|
31 | !! "http://www.cecill.info". |
---|
32 | !! |
---|
33 | !! As a counterpart to the access to the source code and rights to copy, |
---|
34 | !! modify and redistribute granted by the license, users are provided only |
---|
35 | !! with a limited warranty and the software's author, the holder of the |
---|
36 | !! economic rights, and the successive licensors have only limited |
---|
37 | !! liability. |
---|
38 | !! |
---|
39 | !! In this respect, the user's attention is drawn to the risks associated |
---|
40 | !! with loading, using, modifying and/or developing or reproducing the |
---|
41 | !! software by the user in light of its specific status of free software, |
---|
42 | !! that may mean that it is complicated to manipulate, and that also |
---|
43 | !! therefore means that it is reserved for developers and experienced |
---|
44 | !! professionals having in-depth computer knowledge. Users are therefore |
---|
45 | !! encouraged to load and test the software's suitability as regards their |
---|
46 | !! requirements in conditions enabling the security of their systems and/or |
---|
47 | !! data to be ensured and, more generally, to use and operate it in the |
---|
48 | !! same conditions as regards security. |
---|
49 | !! |
---|
50 | !! The fact that you are presently reading this means that you have had |
---|
51 | !! knowledge of the CeCILL license and that you accept its terms. |
---|
52 | !! ========================================================================= |
---|
53 | #include <inca_define.h> |
---|
54 | |
---|
55 | |
---|
56 | |
---|
57 | module RESISTANCE_DIAGNOSE |
---|
58 | #ifdef NMHC |
---|
59 | !---------------------------------------------------------- |
---|
60 | ! ... Surface deposition resistances |
---|
61 | ! Gerd Folberth; LSCE 2002 |
---|
62 | ! Used to diagnose the deposition resistances in INCA |
---|
63 | !---------------------------------------------------------- |
---|
64 | |
---|
65 | USE DRYDEP_PARAMETERS, ONLY: ndep |
---|
66 | |
---|
67 | implicit none |
---|
68 | |
---|
69 | |
---|
70 | real,save,allocatable, dimension(:) :: surf_alb ! surface albedo |
---|
71 | real,save,allocatable, dimension(:) :: sol_irrad ! solar irradiation |
---|
72 | real,save,allocatable, dimension(:) :: surf_temp ! surface temperature |
---|
73 | real,save,allocatable, dimension(:) :: surf_wind ! surface wind speed |
---|
74 | real,save,allocatable, dimension(:) :: aero_resist ! aerodynamic resistance |
---|
75 | real,save,allocatable, dimension(:) :: lamin_resist ! resistance across sublayer |
---|
76 | real,save,allocatable, dimension(:,:) :: surf_resist ! combined surface resistance |
---|
77 | !$OMP THREADPRIVATE(surf_alb,sol_irrad,surf_temp,surf_wind) |
---|
78 | !$OMP THREADPRIVATE(aero_resist,lamin_resist,surf_resist) |
---|
79 | |
---|
80 | CONTAINS |
---|
81 | |
---|
82 | SUBROUTINE init_resistance_diagnose |
---|
83 | USE inca_dim |
---|
84 | IMPLICIT NONE |
---|
85 | |
---|
86 | ALLOCATE( surf_alb(PLON) ) |
---|
87 | ALLOCATE( sol_irrad(PLON) ) |
---|
88 | ALLOCATE( surf_temp(PLON) ) |
---|
89 | ALLOCATE( surf_wind(PLON) ) |
---|
90 | ALLOCATE( aero_resist(PLON) ) |
---|
91 | ALLOCATE( lamin_resist(PLON) ) |
---|
92 | ALLOCATE( surf_resist(PLON,ndep) ) |
---|
93 | |
---|
94 | surf_alb = 0. |
---|
95 | sol_irrad = 0. |
---|
96 | surf_temp = 0. |
---|
97 | surf_wind = 0. |
---|
98 | aero_resist = 0. |
---|
99 | lamin_resist = 0. |
---|
100 | surf_resist = 0. |
---|
101 | END SUBROUTINE init_resistance_diagnose |
---|
102 | |
---|
103 | #endif |
---|
104 | end module RESISTANCE_DIAGNOSE |
---|