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