FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(kt_grids_config_type), | intent(in), | optional | :: | kt_grids_config_in |
subroutine read_parameters_internal(kt_grids_config_in)
use file_utils, only: input_unit, error_unit, input_unit_exist
use text_options, only: text_option, get_option_value
implicit none
type(kt_grids_config_type), intent(in), optional :: kt_grids_config_in
type (text_option), dimension (6), parameter :: gridopts = &
(/ text_option('default', gridopt_single), &
text_option('single', gridopt_single), &
text_option('range', gridopt_range), &
text_option('specified', gridopt_specified), &
text_option('box', gridopt_box), &
text_option('nonlinear', gridopt_box) /)
integer :: ierr
if (present(kt_grids_config_in)) kt_grids_config = kt_grids_config_in
call kt_grids_config%init(name = 'kt_grids_knobs', requires_index = .false.)
! Copy out internal values into module level parameters
grid_option = kt_grids_config%grid_option
nml_exist = kt_grids_config%exist
ierr = error_unit()
call get_option_value (grid_option, gridopts, gridopt_switch, &
ierr, "grid_option in kt_grids_knobs",.true.)
end subroutine read_parameters_internal