sfc_climo_gen  1.6.0
 All Data Structures Files Functions Variables
program_setup.f90
Go to the documentation of this file.
1 
4 
19 
20  implicit none
21 
22  private
23 
24  character(len=500), public :: input_leaf_area_index_file = "NULL"
25  character(len=500), public :: input_facsf_file = "NULL"
28  character(len=500), public :: input_substrate_temperature_file = "NULL"
29  character(len=500), public :: input_maximum_snow_albedo_file = "NULL"
30  character(len=500), public :: input_snowfree_albedo_file = "NULL"
31  character(len=500), public :: input_slope_type_file = "NULL"
32  character(len=500), public :: input_soil_type_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 
65  namelist /config/ input_facsf_file, input_substrate_temperature_file, &
66  input_maximum_snow_albedo_file, input_snowfree_albedo_file, &
67  input_slope_type_file, input_soil_type_file, &
68  input_leaf_area_index_file, input_vegetation_type_file, &
69  input_vegetation_greenness_file, mosaic_file_mdl, &
70  orog_dir_mdl, orog_files_mdl, halo, &
71  vegetation_greenness_method, leaf_area_index_method, &
72  maximum_snow_albedo_method, snowfree_albedo_method
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.
subroutine, public read_setup_namelist(localpet)
Read program setup namelist.