An evolution problem related to shape memory alloys