Allocatable attribute on derived type components
- From: "gaurav" <gauravgautam123@xxxxxxxxx>
- Date: 30 Jun 2006 04:01:56 -0700
Hi,
The F003 standard introduced allocatable attribute on derived type
components. The component with allocatable attribute has to be
allocated seperately using allocatable statment.
However, I could not understand the memory layout of the object of such
derived type object.
For example, consider the following
type drv
integer :: x(10)
real , allocatable :: y(:, :)
end type drv
and then an object obj is defined.
type (drv) :: obj
Can any one help me to understand the memory layout of "obj"? What
would be the size of obj?
Also, what would be the memory layout in case if the derived type is
sequenced?
Thanks
Gaurav
.
- Follow-Ups:
- Re: Allocatable attribute on derived type components
- From: Arjen Markus
- Re: Allocatable attribute on derived type components
- Prev by Date: Re: removing blanks from a file
- Next by Date: Re: Allocatable attribute on derived type components
- Previous by thread: the hot key in CVF 6.6
- Next by thread: Re: Allocatable attribute on derived type components
- Index(es):