Try looking at the imagine1 web site, www.imagine1.com/imagine1.
In the examples section there is a simple heat transfer program that uses
pointers to point to interior sections of an array. There's also a version
that uses section subscript notation for comparison. I think the major
difference between Fortran pointers and C pointers are that the Fortran
pointers can point to multidimensional arrays (and sections of them) and
that they are somewhat restricted in what they can point to (only things
of the correct type and rank, and things either pointer-allocated or declared
to be targets).
There is also a tree sort program that uses pointers.
Any of the books available from the web site will give a pretty good
explanation of Fortran pointers.
Dick Hendrickson
[log in to unmask]
At 04:40 PM 2/9/99 +0500, Ravi C Venkatesan wrote:
>Dear Colleagues,
>
>I would be MOST grateful if any of you could could provide me with
>sample codes/internet sites from where I can understand:
>
>1. The differences betweeen pointers in F 90 and C, and the
> "improvements" provided by implementations in the former
>
>2. Examples of simple binary trees implemented in F 90.
>
>
>Thank you for your time, and I look forward to hearing from you in the
>near future.
>
>Sincerely yours
>
>Ravi Venkatesan
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|