!> @file chem_modules.f90
!--------------------------------------------------------------------------------------------------!
! This file is part of the PALM model system.
!
! PALM is free software: you can redistribute it and/or modify it under the terms of the GNU General
! Public License as published by the Free Software Foundation, either version 3 of the License, or
! (at your option) any later version.
!
! PALM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
! implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
! Public License for more details.
!
! You should have received a copy of the GNU General Public License along with PALM. If not, see
! .
!
! Copyright 2018-2020 Leibniz Universitaet Hannover
! Copyright 2018-2020 Karlsruhe Institute of Technology
! Copyright 2018-2020 Freie Universitaet Berlin
!--------------------------------------------------------------------------------------------------!
!
! Current revisions:
! -----------------
!
!
! Former revisions:
! -----------------
! $Id: chem_modules.f90 4559 2020-06-11 08:51:48Z gronemeier $
! file re-formatted to follow the PALM coding standard
!
! 4544 2020-05-21 14:43:05Z raasch
! conc_av changed from pointer to allocatable array
!
! 4511 2020-04-30 12:20:40Z raasch
! new variables for explicit settings of lateral boundary conditions introduced
!
! 4481 2020-03-31 18:55:54Z maronga
! added namelist flag 'emiss_read_legacy_mode' to allow concurrent functioning of new emission read
! mode under development (ECC)
!
! 4273 2019-10-24 13:40:54Z monakurppa
! Add logical switches nesting_chem and nesting_offline_chem (both .TRUE. by default)
!
! 4182 2019-08-22 15:20:23Z scharf
! Corrected "Former revisions" section
!
! 4110 2019-07-22 17:05:21Z suehring
! +cs_advc_flags_s
!
! 4109 2019-07-22 17:00:34Z suehring
! - introduced namelist item chem_modules@emiss_lod as future
! - replacement to chem_modules@mode_emis. Currently keeping both for backward compatibility.
! chem_modules@mode_emis will be depreciated upon migration of all dependent modules (e.g., salsa)
! to chem_modules@emiss_lod
!
! (ecc) 20190513 replaced nspec_out with n_matched_vars
!
! 3877 2019-04-08 19:09:16Z knoop
! Formatting, clean-up, clarified/corrected comments
!
! 3833 2019-03-28 15:04:04Z forkel
! removed USE chem_gasphase_mod
!
! 3827 2019-03-27 17:20:32Z forkel
! some formatting and reordering (ecc)
!
! 3820 2019-03-27 11:53:41Z forkel
! renamed do_emis to emissions_anthropogenic, removed USE statistics, variables sorted by type
!
! 3780 2019-03-05 11:19:45Z forkel
! added cs_mech
!
! 3652 2019-01-07 15:29:59Z forkel
! parameter chem_mechanism added (basit)
!
! 3282 2018-09-27 10:49:12Z basit
! Initial revision
!
! Authors:
! --------
! @author Farah Kanani-Suehring
! @author Basit Khan
! @author Sabine Banzhaf
! @author Emmanuele Russo
! @author Edward C. Chan
!
!--------------------------------------------------------------------------------------------------!
! Description:
! ------------
!> Definition of global PALM-4U chemistry variables
!--------------------------------------------------------------------------------------------------!
!
MODULE chem_modules
USE kinds
IMPLICIT NONE
CHARACTER (LEN=20) :: bc_cs_b = 'dirichlet' !< namelist parameter: surface
!< boundary condition for concentration
CHARACTER (LEN=20) :: bc_cs_l = 'undefined' !< left boundary condition
CHARACTER (LEN=20) :: bc_cs_n = 'undefined' !< north boundary condition
CHARACTER (LEN=20) :: bc_cs_r = 'undefined' !< right boundary condition
CHARACTER (LEN=20) :: bc_cs_s = 'undefined' !< south boundary condition
CHARACTER (LEN=20) :: bc_cs_t = 'initial_gradient' !< namelist parameter: top boudary
!< condition for concentration
CHARACTER (LEN=30) :: chem_mechanism = 'phstatp' !< namelist parameter: chemistry
!< mechanism
CHARACTER (LEN=80) :: daytype_mdh = 'workday' !< namelist parameter: type of day
!< - workday, weekend, holiday
CHARACTER (LEN=80) :: mode_emis = 'PARAMETERIZED' !< namelist parameter: mode of
!< chemistry emissions -
!< DEFAULT, EXPERT, PARAMETERIZED
CHARACTER (LEN=10) :: photolysis_scheme !< 'constant',
!< 'simple' (Simple parameterisation from MCM,
!< Saunders et al., 2003, Atmos. Chem. Phys., 3, 161-180
!< 'fastj' (Wild et al., 2000, J. Atmos. Chem., 37, 245-282)
!< STILL NOT IMPLEMENTED
CHARACTER (LEN=80) :: time_fac_type = 'MDH' !< namelist parameter: type of time treatment in the mode_emis
!< DEFAULT - HOUR, MDH
CHARACTER (LEN=11), DIMENSION(99) :: cs_name = 'novalue' !< namelist parameter:
!