sfc_climo_gen  1.13.0
program_setup.f90
Go to the documentation of this file.
1 
4 
18 
19  implicit none
20 
21  private
22 
23  character(len=500), public :: input_leaf_area_index_file = "NULL"
24  character(len=500), public :: input_facsf_file = "NULL"
27  character(len=500), public :: input_substrate_temperature_file = "NULL"
28  character(len=500), public :: input_maximum_snow_albedo_file = "NULL"
29  character(len=500), public :: input_snowfree_albedo_file = "NULL"
30  character(len=500), public :: input_slope_type_file = "NULL"
31  character(len=500), public :: input_soil_type_file = "NULL"
32  character(len=500), public :: input_soil_color_file = "NULL"
33  character(len=500), public :: input_vegetation_type_file = "NULL"
34  character(len=500), public :: input_vegetation_greenness_file = "NULL"
35  character(len=500), public :: mosaic_file_mdl = "NULL"
36  character(len=500), public :: orog_dir_mdl = "NULL"
37  character(len=500), public :: orog_files_mdl(6) = "NULL"
38 
39  character(len=50), public :: leaf_area_index_method='bilinear'
41  character(len=50), public :: maximum_snow_albedo_method='bilinear'
43  character(len=50), public :: snowfree_albedo_method='bilinear'
45  character(len=50), public :: vegetation_greenness_method='bilinear'
47 
48  integer, public :: halo = 0
50 
51  logical, public :: fract_vegsoil_type = .false.
54 
55  public :: read_setup_namelist
56 
57  contains
58 
63  subroutine read_setup_namelist(localpet)
64 
65  use mpi
66 
67  implicit none
68 
69  integer, intent(in) :: localpet
70 
71  integer :: ierr
72 
82 
83  print*,"- READ SETUP NAMELIST, LOCALPET: ", localpet
84 
85  open(41, file="./fort.41", iostat=ierr, err=900)
86  read(41, nml=config, iostat=ierr, err=901)
87  close (41)
88 
89  return
90 
91  900 print*,'- FATAL ERROR OPENING CONFIG NAMELIST'
92  print*,'- IOSTAT IS: ', ierr
93  call mpi_abort(mpi_comm_world, 10, ierr)
94 
95  901 print*,'- FATAL ERROR READING CONFIG NAMELIST'
96  print*,'- IOSTAT IS: ', ierr
97  call mpi_abort(mpi_comm_world, 11, ierr)
98 
99  end subroutine read_setup_namelist
100 
101  end module program_setup
Set up program execution.
character(len=500), dimension(6), public orog_files_mdl
Model grid orography filenames.
character(len=50), public snowfree_albedo_method
Interpolation method for snowfree albedo.
character(len=500), public input_facsf_file
File containing input fractional coverage data for strong zenith angle dependent albedo.
character(len=500), public input_soil_type_file
File containing input soil type data.
logical, public fract_vegsoil_type
When true, output the percentage of each soil and vegetation type category, and the dominant category...
character(len=500), public input_snowfree_albedo_file
File containing input snow-free albedo data.
character(len=500), public input_maximum_snow_albedo_file
File containing input maximum snow albedo data.
subroutine, public read_setup_namelist(localpet)
Read program setup namelist.
integer, public halo
Number of row/cols defining the lateral boundary halo.
character(len=500), public input_leaf_area_index_file
File containing input leaf area index data.
character(len=500), public input_vegetation_greenness_file
File containing input vegetation greenness data.
character(len=50), public leaf_area_index_method
Interpolation method for leaf area index.
character(len=500), public input_slope_type_file
File containing input slope type data.
character(len=50), public maximum_snow_albedo_method
Interpolation method for max snow albedo.
character(len=500), public orog_dir_mdl
Directory containing the model grid orography files.
character(len=500), public input_soil_color_file
File containing input soil color data.
character(len=500), public input_vegetation_type_file
File containing input vegetation type data.
character(len=500), public mosaic_file_mdl
Model grid mosaic file.
character(len=500), public input_substrate_temperature_file
File containing input soil substrate temperature data.
character(len=50), public vegetation_greenness_method
Interpolation method for vegetation greenness.