(j3.2006) (j3.2005) allocate / assignment
Tue Nov 28 19:01:55 EST 2006
On Tuesday 28 November 2006 16:09, Bill Long wrote:
> ALLOCATE(NEW, SOURCE=OLD)
> Is the effect of the allocate statement any different (assuming NEW is
> unallocated before) from this assignment?
> NEW = OLD
I believe they are identical. We only added "polymorphic assignment" for
allocatables recently---in F2003 the rhs could not be polymorphic. So one had
to use SOURCE=.
Aleksandar Donev, Ph.D.
Lawrence Postdoctoral Fellow @ LLNL
High Performance Computational Materials Science and Chemistry
E-mail: donev1 at llnl.gov
Phone: (925) 424-6816 Fax: (925) 423-0785
Address: P.O.Box 808, L-367, Livermore, CA 94551-9900
More information about the J3