Re: [AMBER-Developers] misused intent(out)

From: Scott Brozell <sbrozell.rci.rutgers.edu>
Date: Thu, 30 Sep 2010 14:46:52 -0400

Hi,

On Thu, Sep 30, 2010 at 08:46:56AM -0400, Jason Swails wrote:
> Well intent(out) is applied to an array in which only a chunk of the array
> is initialized (the charges of a single residue, or 2, are changed in the
> global charge array). According to the Fortran standard, I think the rest
> of the array is technically undefined. So it would be legitimate compiler
> behavior to trash the remaining array values. If I'm mistaken here, please

Sorry, when i read this the first time i saw derived type, not array.
So I don't think this is an example of the problem demonstrated at
http://www.cs.rpi.edu/~szymansk/OOF90/bugs.html#2
I'm checking the f90 standard.

What is the file and source line ?

thanks,
Scott


_______________________________________________
AMBER-Developers mailing list
AMBER-Developers.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber-developers
Received on Thu Sep 30 2010 - 12:00:04 PDT
Custom Search