Keeping values of arrays after subroutine execution

Hello everybody
I am employing a UDMGINI subroutine to develop an anisotropic damage criterion. In this method, I need to keep coordinates of some elements with specific characteristics in a 2-D array. But as you know the subroutine is called at each integration point and all variables reset after subroutine execution while I need to store the data of some elements in an array. Is there any way to keep and append new information to an array each time the subroutine is called?