source: CONFIG/publications/ICOLMDZORINCA_CO2_Transport_GMD_2023/INCA/build/ppsrc/INCA_SRC/outfld_xios.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
2
3
4
5
6
7
8
9
10
11
12!! =========================================================================
13!! INCA - INteraction with Chemistry and Aerosols
14!!
15!! Copyright Laboratoire des Sciences du Climat et de l'Environnement (LSCE)
16!!           Unite mixte CEA-CNRS-UVSQ
17!!
18!! Contributors to this INCA subroutine:
19!!
20!! Stacy Walters, NCAR, stacy@ucar.edu
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
63
64  SUBROUTINE OUTFLD_XIOS(pmid,temp,sh,ps,pdel,area)
65
66    USE IOIPSL
67    USE MOD_INCA_PARA
68    USE INCA_DIM
69    USE MOD_GRID_INCA
70    USE SURF_CHEM_MOD
71    USE PARAM_CHEM
72
73    USE SPECIES_NAMES
74    USE CHEM_TRACNM, ONLY: solsym
75
76    USE SFLX
77    USE LIGHTNING, ONLY : flash, flpcg
78    USE CHEM_MODS
79    USE AIRPLANE_SRC, ONLY : ptrop
80    USE TIME_MOD_INCA
81    USE XIOS_INCA
82    USE AEROSOL_DIAG
83    USE CONST_LMDZ, ONLY : config_inca 
84
85    IMPLICIT NONE
86
87    REAL, INTENT(IN)     :: pmid(PLON,PLEV)
88    REAL, INTENT(IN)     :: pdel(PLON,PLEV)
89    REAL, INTENT(IN)     :: area(PLON)
90    REAL, INTENT(IN)     :: temp(PLON,PLEV)
91    REAL, INTENT(IN)     :: sh(PLON,PLEV)
92    REAL, INTENT(IN)     :: ps(PLON)
93
94
95    INTEGER :: it,la, length
96    CHARACTER(len=13) :: tmp_name
97    REAL    :: inter_tautot(PLON)
98    REAL    :: inter_tauant(PLON)
99    REAL    :: inter_taunat(PLON)
100
101
102    CALL xios_inca_send_field("pmid",pmid) 
103    CALL xios_inca_send_field("temp",temp) 
104    CALL xios_inca_send_field("sh",sh) 
105    CALL xios_inca_send_field("ps",ps) 
106    CALL xios_inca_send_field("area",area) 
107    CALL xios_inca_send_field("pdel",pdel) 
108
109
110
111
112
113
114     END SUBROUTINE OUTFLD_XIOS
Note: See TracBrowser for help on using the repository browser.