[Octopus-users] data save as dx file

luos at msu.edu luos at msu.edu
Thu Apr 15 04:12:24 WEST 2010


Dear all,

I have been using octopus to run 3D models to get results that can be used by other compilers.   And I need to read the results  saved in the dx file.

Suppose the density is computed on a  m*n*k  grid, and i see in the dx file, the data is saved in a long vector. 
Now I need to read the long vector and reshape it back to the 3D matrix m*n*k. Can any one tell me  the ordering of the data that is saved in the long vector?    Is it saved   m*n maxtrix by m*n matrix, and for each matrix, it is saved row by row?  In another words, is this 3D matrix saved in a long vector as  matlab saves a 3D matrix in a long vector?  The ordering is the same as in matlab? 

Thank you very much,
Songting
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.tddft.org/pipermail/octopus-users/attachments/20100414/9adc2503/attachment.html 


More information about the Octopus-users mailing list