To define solution-dependent state variable in VUSDFLD subroutine use: stateNew(nblock,nstatev). Here nblock stands for a number of material points to be processed in the call to VUSDFLD while nstatev is a number of user-defined state variables associated with material type. An example can be found in the documentation (User Subroutines Reference Guide --> VUSDLFD). In this example stateNew is used to store the maximum strain as solution-dependent state variable.