3 ! Original code from Martin Diehl <m.diehl at mpie dot de>
5 ! Prior to fixing the problem with the array descriptor, gfortran died with
6 ! Operating system error: Cannot allocate memory
7 ! Integer overflow in xmallocarray
11 real(8) :: tensor(3,3) = 4
12 integer :: grid(3) = 16
14 write(6,*) spread(spread(tensor
,3,grid(1)),4,grid(1))
15 ! ok (note the brackets)
16 write(6,*) spread((spread(spread(tensor
,3,grid(1)),4,grid(2))),5,grid(3))
18 write(6,*) spread(spread(spread(tensor
,3,grid(1)),4,grid(2)),5,grid(3))