In a message dated 1/14/2000 6:08:58 PM Pacific Standard Time,
[log in to unmask] writes:
> my code declares and then allocates and deallocates
> these temporary storage arrays within subroutines as they are required. I
> have done some profiling using the Lahey F90 compiler, and, contrary to my
> expectations, array allocation is very quick in comparison to other array
> operations.
This might be expected, if the allocation is outside 2 or 3 nested DO loops.
Where a single subscripted array is allocated, used once, and de-allocated,
inside a time-consuming loop, there is likely to be a serious waste of time.
I don't know whether I'd believe that you could get useful profiling
information on this from lf95, however. The array operations would benefit
greatly from optimization, while the allocate-deallocate would not.
Tim
[log in to unmask]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|