How to access solution data from a user material subroutine (UserMat or UserMatTh)?
I am using the user routines UserMat and UserMAtTh for material modelling. Out of the routine, I want to access user state variables for an element other than the current one (other than the one the user routine has been called for). I expected that this can be done by the provided subroutine (API) get_ElmData (kchar, elemId, kMatRecPt, ncomp, vect). However, this subroutine seems to work only for the current element, not for other elements. The element number elemId specified as input for the subroutine is ignored. The output contains always data for the integration points of the current element. Does someone have an idea how to access user state variables of other elements?