I am having some issues with writing efficiently a vector in fortran to disk.
Here's a minimal working example:
integer :: ind
double precision, allocatable :: c_reshape
allocate(c_reshape(576000))
do ind = 1,576000
c_reshape(ind) = ind
end do
OPEN(UNIT=25,FILE='c_res',STATUS='replace',ACTION='write')
WRITE(25,*) c_reshape(:)
CLOSE(UNIT=25)
When I open the output file in notepad this is what I see:
Why does Fortran save it in 3 columns? Anyway of saving it in a single column without writing a loop?