(Re)allocation of allocatable arrays on assignment - F2003

Paul Richard Thomas paul.richard.thomas@gmail.com
Tue Oct 26 16:52:00 GMT 2010


Dominique,

It segfaults for me :-(

Cheers and thanks

Paul

On Tue, Oct 26, 2010 at 5:22 PM, Dominique Dhumieres <dominiq@lps.ens.fr> wrote:
> Paul,
>
> Another problem with the addition of
>
> c=a(3:8)+b(52:57)
> print *, c
> print *, lbound(c), ubound(c)
>
> the sum is correct, but the size is not (8 elements) nor the bounds 2:9
> (note that I don't know if this piece of cod is valid).
>
> Dominique
>



-- 
The knack of flying is learning how to throw yourself at the ground and miss.
       --Hitchhikers Guide to the Galaxy



More information about the Fortran mailing list