Prev: Need efficient Fortran equivalent to Matlab accumarray
Next: How to define a user data type containing an array with dimensions decided in running time
From: Hifi-Comp on 15 May 2010 17:45 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. |