From: Hifi-Comp on
Dear All,

I am thinking to create a user data type containing an array with
dimensions decided in running time.

Currently I have the following:

INTEGER,PARAMETER:: n=3

TYPE,PUBLIC:: User_Data
REAL(DBL_AD)::scale
REAL(DBL_AD)::vector(n)
END TYPE User_Data

In ideal situation, I want the user to input n and the dimension of
vector determined in running time. How can I achieve this? I guess I
need to use pointers. But how? Thanks a lot for any suggestions.