sfc_climo_gen  1.12.0
 All Data Structures Files Functions Variables Pages
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 
73  namelist /config/ input_facsf_file, input_substrate_temperature_file, &
74  input_maximum_snow_albedo_file, input_snowfree_albedo_file, &
75  input_slope_type_file, input_soil_type_file, input_soil_color_file,&
76  input_leaf_area_index_file, input_vegetation_type_file, &
77  input_vegetation_greenness_file, mosaic_file_mdl, &
78  orog_dir_mdl, orog_files_mdl, halo, &
79  vegetation_greenness_method, leaf_area_index_method, &
80  maximum_snow_albedo_method, snowfree_albedo_method, &
81  fract_vegsoil_type
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.
subroutine, public read_setup_namelist(localpet)
Read program setup namelist.