Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Memory Deallocation

bbeyer
Novice
599 Views
When using the new feature of allocatable elements within derived types such as:
type sample
real*8, allocatable :: x(:)
end type
type(sample), allocatable :: test(:)
When you deallocate "test", do you need to deallocate "x" first, or is this done automatically in the deallocation of "test"?
0 Kudos
2 Replies
Steven_L_Intel1
Employee
599 Views
The nested allocatable components are automatically deallocated.
0 Kudos
bbeyer
Novice
599 Views
Thanks Steve!
0 Kudos
Reply