Set the module level config type Will abort if the module has already been initialised to avoid inconsistencies.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(kt_grids_box_config_type), | intent(in), | optional | :: | kt_grids_box_config_in |
subroutine set_kt_grids_box_config(kt_grids_box_config_in)
use mp, only: mp_abort
type(kt_grids_box_config_type), intent(in), optional :: kt_grids_box_config_in
if (initialized) then
call mp_abort("Trying to set kt_grids_box_config when already initialized.", to_screen = .true.)
end if
if (present(kt_grids_box_config_in)) then
kt_grids_box_config = kt_grids_box_config_in
end if
end subroutine set_kt_grids_box_config