jameskermode/f90wrap

Data type determined at run time

Opened this issue · 0 comments

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:

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!