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