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