Another tip, where you have many allocates and deallocates to perform, is
to concentrate them in as few statements as possible; i.e. instead of
allocate(a(i))
allocate(b(j))
allocate(c(k)
write
allocate(a(i), b(j), c(k))
This reduces the number of interactions with the OS.
Mike Metcalf
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|