### 7.6.1. Direct Access through User Element Number

The following code provides an example of how to directly access/store information for a single entity (node or element) knowing the user number.

    USE mdstring

          IMPLICIT NONE

          INTEGER(INT4) :: NEL_USER, NEL, N

          NEL = 0
          DO N = 1, NUM_ENTITY_ENTRIES(TYPE_ELEM)
            IF (ENTITY_TYPES(TYPE_ELEM)%ID(N)==NEL_USER) THEN
              NEL = N
              EXIT
            END IF
          END DO

Release 18.2 - © ANSYS, Inc. All rights reserved.