I have a file with 1680 numerical values,I want to read it and reshape it,later use that array for further calculations.Like this:
integer:: i,j
real,dimension(1680) :: s
real, dimension(21,80) :: ist
integer,dimension(80,80) :: wd,wd2
real,dimension(80,1):: d,wr
real,dimension(21,1):: l01
real,dimension(21) ::l0
real :: norm20
read(14,*)(s(i),i=1,1680)
ist=reshape(s,shape=shape(ist))
write(109,*)ist
The question is how columns are created?Is it equivalent to a loop?Does it take first 80 elements or?
integer:: i,j
real,dimension(1680) :: s
real, dimension(21,80) :: ist
integer,dimension(80,80) :: wd,wd2
real,dimension(80,1):: d,wr
real,dimension(21,1):: l01
real,dimension(21) ::l0
real :: norm20
read(14,*)(s(i),i=1,1680)
ist=reshape(s,shape=shape(ist))
write(109,*)ist
The question is how columns are created?Is it equivalent to a loop?Does it take first 80 elements or?