next up previous contents
Next: Target Declaration Up: Pointers and Targets Previous: Pointers and Targets   Contents

Pointer Declaration

Include POINTER attribute. For example:
real, pointer :: PtoR,  PtoR2
PtoR, PtoR2 are pointers to a scalar, REAL target.
real, dimension(:,:), pointer :: PtoA
PtoA is pointer to a rank 2, REAL array of REALs.

Note that

POINTER attribute is incompatible with ALLOCATABLE or PARAMETER.

Adrian Sandu 2001-08-26