Hellow everybody,
I am wondering whether there would be a way in FORTRAN to get a pointer address to an available datatype.
For example:
I have the below data type
and I would create
Now I am wondering defining mytype, is there anyway I can get a pointer address to this type.
Thanks a lot in advance.
Cheers,
I am wondering whether there would be a way in FORTRAN to get a pointer address to an available datatype.
For example:
I have the below data type
Code:
module dt
type data
integer, dimension(3) :: comp
real, dimension(:), pointer :: a => null
end type
end module dt
Code:
program test
use dt
implicit none
type(data) :: mytype
end program test
Now I am wondering defining mytype, is there anyway I can get a pointer address to this type.
Thanks a lot in advance.
Cheers,