You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was just wondering if there's any way of having a variable with a data type which is determined at runtime, like for a parametrised derived data type:
TYPE :: vector(kind,n)
INTEGER, KIND :: kind = KIND(0.) ! Defaults to single precision
INTEGER, n = 3 ! Defaults to three elements
REAL(kind),DIMENSION(n) :: v ! Parameterized vector
END TYPE vector
Thanks!
The text was updated successfully, but these errors were encountered:
Hi James,
I was just wondering if there's any way of having a variable with a data type which is determined at runtime, like for a parametrised derived data type:
Thanks!
The text was updated successfully, but these errors were encountered: