On 28/11/2010 12:12 AM, ???????????? wrote:
Dear gmxers,
I am trying to perform an analysis on the trjectory file using xdrfile library. First of all, I want to save the coordinates of all atoms in three 2D-arrays, i.e. xx[step-1][natom-1], yy[step-1][natom-1], zz[step-1][natom-1]. How to do so? Could you give me some hints, please? If you had happened to do so, could you kindly send the code to me? Thanks a lot.
Yours sincerely,
Chaofu Wu, Dr.

You probably don't want to do that, because it doesn't scale to large numbers of trajectory frames - you will run out of memory eventually. If at all possible you should structure your algorithm to deal with one frame at a time. There are already GROMACS functions that make that easy. Pick a GROMACS trajectory analysis tool that sounds fairly simple and vaguely similar to what you want to do, and look at how its code works.

Mark
--
gmx-users mailing list    [email protected]
http://lists.gromacs.org/mailman/listinfo/gmx-users
Please search the archive at 
http://www.gromacs.org/Support/Mailing_Lists/Search before posting!
Please don't post (un)subscribe requests to the list. Use the www interface or send it to [email protected].
Can't post? Read http://www.gromacs.org/Support/Mailing_Lists

Reply via email to