Hi,
I have a piece of code where I expected ASSOCIATED to be true for two
pointers, but the printed result is false on one compiler (and true on
another compiler):
WRITE (*,*) ASSOCIATED (lsd_packing%dynamic_ptp%static_ptp, &
& lsd_packing%static_ptp),
If I print the actual hardware address of the two pointers (here I print
the address for the first component using my own function C_LOC which
is written in C), I get the same number:
WRITE (*,*) C_LOC (lsd_packing%dynamic_ptp%static_ptp%ptp_n_points),
C_LOC (lsd_packing%static_ptp%ptp_n_points)
So these two pointers must be ASSOCIATED? I mean, the two obviously
share the same target since the address is the same, and they have the
same type, and are both scalar, so my reading of the description of
ASSOCIATED says it should print true.
Thanks,
Aleksandar
--
__________________________________
Aleksandar Donev
Complex Materials Theory Group (http://cherrypit.princeton.edu/)
Princeton Materials Institute &
Program in Applied and Computational Mathematics
@ Princeton University
Address:
419 Bowen Hall, 70 Prospect Avenue
Princeton University
Princeton, NJ 08540-5211
E-mail: [log in to unmask]
WWW: http://atom.princeton.edu/donev
Phone: (609) 258-2775
Fax: (609) 258-6878
__________________________________
|