
module exoplanet_mod
  ! This is paired down version of exoplanet_mod.F90, the primary version of which is
  ! the core module for changing geophysical and stellar parameters in ExoCAM.
  ! This module has been simplified to remove items not explicitly needed in the
  ! standalone radiation.

  ! set basic atmosphere assumptions here.

  use shr_kind_mod,  only: r8 => shr_kind_r8
  implicit none
  public

  ! solar file directory
  character(len=256), parameter :: dirsol = 'data/solar/'

  ! solar spectral file names
  !character(len=256), parameter :: solar_file = 'G_star_n84.nc'
  !character(len=256), parameter :: solar_file = 'WD_5000K_n84.nc'
  !character(len=256), parameter :: solar_file = 'trappist1_lincowski2018_n68.nc'
  !character(len=256), parameter :: solar_file = 'blackbody_3400K_n68.nc'
  character(len=256), parameter :: solar_file = 'G2V_SUN_n68.nc'
  !character(len=256), parameter :: solar_file = 'LHS1140_spectra_n42.nc'
  !character(len=256), parameter :: solar_file = 'bt-settl_2600_logg4.5_FeH0_n68.nc'

  ! solar constant, 1D kludge
  real(r8), parameter :: shr_const_scon = 680.0 !Wm-2, Current Earth (approximate)
  !real(r8), parameter :: shr_const_scon = 443.2/2.0 !Wm-2, Early Mars

  ! number of levels
  !integer, parameter :: exo_pver   = 40  !CESM   
  !integer, parameter :: exo_pver   = 45  !CESM   
  !integer, parameter :: exo_pver   = 66  !WACCM
  !integer, parameter :: exo_pver   = 49  !US1976
  !integer, parameter :: exo_pver   = 69   !2 bar CO2   
  integer, parameter :: exo_pver   = 300 !ExoMIP

  ! must set gravity!!!!
  real(r8), parameter :: exo_g = 9.80616 !Earth
  !real(r8), parameter :: exo_g = 7.22925 !Trappist-1e
  !real(r8), parameter :: exo_g = 3.711 ! Mars

  ! Reference pressures (should not effect final answer)
  real(r8), parameter :: exo_pstd = 100000.  !Pascals


  


end module exoplanet_mod
