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