(Re)allocation of allocatable arrays on assignment - F2003

Dominique Dhumieres dominiq@lps.ens.fr
Tue Oct 26 15:47:00 GMT 2010


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



More information about the Fortran mailing list