I have a question regarding the use of STRE, NODE command in FEAP v8.6
In my parent user element, subroutines for isw = 3 and isw = 8 are called. Each isw returns array s and p. However, sizes of these arrays differ for both the cases. In isw = 3, s = (nst,*), while for isw=8, s = (nen,*).
Since array s is declared once at the start of parent element, how can it be declared again with a different size before calling either of the subroutines (isw=3 or isw=8) to accommodate size difference in each one of them? Fortran does not allow 2D assumed-size arrays.
Attached here is the user element for reference.