mo_rte_kind.F90 Source File


Files dependent on this one

sourcefile~~mo_rte_kind.f90~~AfferentGraph sourcefile~mo_rte_kind.f90 mo_rte_kind.F90 sourcefile~mo_rte_config.f90 mo_rte_config.F90 sourcefile~mo_rte_config.f90->sourcefile~mo_rte_kind.f90 sourcefile~mo_optical_props.f90 mo_optical_props.F90 sourcefile~mo_optical_props.f90->sourcefile~mo_rte_kind.f90 sourcefile~mo_optical_props.f90->sourcefile~mo_rte_config.f90 sourcefile~mo_rte_util_array_validation.f90 mo_rte_util_array_validation.F90 sourcefile~mo_optical_props.f90->sourcefile~mo_rte_util_array_validation.f90 sourcefile~mo_rte_lw.f90 mo_rte_lw.F90 sourcefile~mo_rte_lw.f90->sourcefile~mo_rte_kind.f90 sourcefile~mo_rte_lw.f90->sourcefile~mo_rte_config.f90 sourcefile~mo_rte_lw.f90->sourcefile~mo_optical_props.f90 sourcefile~mo_source_functions.f90 mo_source_functions.F90 sourcefile~mo_rte_lw.f90->sourcefile~mo_source_functions.f90 sourcefile~mo_rte_lw.f90->sourcefile~mo_rte_util_array_validation.f90 sourcefile~mo_fluxes.f90 mo_fluxes.F90 sourcefile~mo_rte_lw.f90->sourcefile~mo_fluxes.f90 sourcefile~mo_source_functions.f90->sourcefile~mo_rte_kind.f90 sourcefile~mo_source_functions.f90->sourcefile~mo_optical_props.f90 sourcefile~mo_rte_util_array_validation.f90->sourcefile~mo_rte_kind.f90 sourcefile~mo_fluxes.f90->sourcefile~mo_rte_kind.f90 sourcefile~mo_fluxes.f90->sourcefile~mo_rte_config.f90 sourcefile~mo_fluxes.f90->sourcefile~mo_optical_props.f90 sourcefile~mo_fluxes.f90->sourcefile~mo_rte_util_array_validation.f90 sourcefile~mo_rte_sw.f90 mo_rte_sw.F90 sourcefile~mo_rte_sw.f90->sourcefile~mo_rte_kind.f90 sourcefile~mo_rte_sw.f90->sourcefile~mo_rte_config.f90 sourcefile~mo_rte_sw.f90->sourcefile~mo_optical_props.f90 sourcefile~mo_rte_sw.f90->sourcefile~mo_rte_util_array_validation.f90 sourcefile~mo_rte_sw.f90->sourcefile~mo_fluxes.f90

Contents

Source Code


Source Code

! This code is part of Radiative Transfer for Energetics (RTE)
!
! Contacts: Robert Pincus and Eli Mlawer
! email:  rrtmgp@aer.com
!
! Copyright 2015-  Atmospheric and Environmental Research,
!    Regents of the University of Colorado,
!    Trustees of Columbia University in the City of New York
! All right reserved.
!
! Use and duplication is permitted under the terms of the
!    BSD 3-clause license, see http://opensource.org/licenses/BSD-3-Clause
! -------------------------------------------------------------------------------------------------
!>
!> ## Provide the Fortran KIND parameters for REAL and INTEGER variables.
!>   By default kind parameters come from the ISO C binding and use double precision for working.
!
!   If the host model in which RRTGMP is embedded has defined these constants elsewhere
!   the model definitions can be used instead by renaming. For example,
! use  mo_model_kind, only wp => dp, ...
!   where the syntax is local_name => original_name
!   and all the local names need to be defined

module mo_rte_kind
  use, intrinsic :: iso_c_binding, only: c_float, c_double, c_long, c_int, c_bool
  implicit none
  public
  integer, parameter :: dp = c_double, sp = c_float, i8 = c_long, i4 = c_int
  !
  ! Floating point working precision
  !
#ifdef RTE_USE_SP
  integer, parameter :: wp = sp
#else
  integer, parameter :: wp = dp
#endif

  !
  ! Logical - for use with kernels
  !
  ! Note that c_boolians don't work with PGI compiler currently
  !
#ifdef RTE_USE_CBOOL
  integer, parameter :: wl = c_bool
#else
  integer, parameter :: wl = kind(.true.)
#endif

end module mo_rte_kind