Re: amber-developers: Compile AMBER9 on SGI

From: David A. Case <case.scripps.edu>
Date: Tue, 8 Nov 2005 20:14:53 -0700

On Tue, Nov 08, 2005, Ross Walker wrote:
>
>
> Pointers are also much more versatile since you can use the pointer
> assignment command to flip arrays rather than doing a copy. E.g.
>

Just a comment, based on the arguments in "Fortran 95/2003 Explained":

If you don't need the extra things pointers can do, then you should
probably
stick with allocatable arrays (see section 6.5.1 of the above book). So,
let's not arbtrarily start using pointers except where they are really
needed.
Remember that pointers are harder to code in the first place, and
generally
create code that is harder to understand, and therefore harder to
maintain,
than allocatable arrays.

[In particular, F95 pointers can easily get involved in memeory leaks,
whereas
this is considerably more difficult with allocatable arrays.]

....just my $.02 ....dac
Received on Wed Apr 05 2006 - 23:49:51 PDT
Custom Search