sfc_climo_gen  1.9.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'
40  character(len=50), public :: maximum_snow_albedo_method='bilinear'
41  character(len=50), public :: snowfree_albedo_method='bilinear'
42  character(len=50), public :: vegetation_greenness_method='bilinear'
43 
44  integer, public :: halo = 0
46 
47  public :: read_setup_namelist
48 
49  contains
50 
55  subroutine read_setup_namelist(localpet)
56 
57  use mpi
58 
59  implicit none
60 
61  integer, intent(in) :: localpet
62 
63  integer :: ierr
64 
73 
74  print*,"- READ SETUP NAMELIST, LOCALPET: ", localpet
75 
76  open(41, file="./fort.41", iostat=ierr, err=900)
77  read(41, nml=config, iostat=ierr, err=901)
78  close (41)
79 
80  return
81 
82  900 print*,'- FATAL ERROR OPENING CONFIG NAMELIST'
83  print*,'- IOSTAT IS: ', ierr
84  call mpi_abort(mpi_comm_world, 10, ierr)
85 
86  901 print*,'- FATAL ERROR READING CONFIG NAMELIST'
87  print*,'- IOSTAT IS: ', ierr
88  call mpi_abort(mpi_comm_world, 11, ierr)
89 
90  end subroutine read_setup_namelist
91 
92  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.
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.