A gradient damage model for dynamic localization problems.