[gmx-users] c-program
Anton Feenstra
feenstra at chem.vu.nl
Fri Apr 12 10:22:42 CEST 2002
Nguyen Hoang Phuong wrote:
>
> Dear All,
>
> I would like to read the coordinates of th every step from the gro file
> and write it to every file. I wrote a simple c program to do that but it
> can only produce 1015 files and then I got Segmentation fault. Does anyone
> have experience about this? Thanks in advance.
I don't know what your goal is, but there is a number of gromacs tools
that can do similar things. For example, trjconv can write out every
nth frame into separate files, like this:
trjconv -f traj.xtc -s topol.tpr -o frames.gro -sep -skip 10
will write every 10th frame from traj.xtc into files named 'frames#.gro'
where '#' will be numbers.
--
Groetjes,
Anton
________ ___________________________________________________________
| | Anton Feenstra |
| . | Dept. of Pharmacochemistry - Free University Amsterdam |
| |---- | De Boelelaan 1083 - 1081 HV Amsterdam - The Netherlands |
| |---- | Tel: +31 20 44 47608 - Fax: +31 20 44 47610 |
| ' __ | Feenstra at chem.vu.nl - http://www.chem.vu.nl/afdelingen/FAR|
| / \ |-----------------------------------------------------------|
| ( ) | Dept. of Biophysical Chemistry - University of Groningen |
| \__/ | Nijenborgh 4 - 9747 AG Groningen - The Netherlands |
| __ | Tel +31 50 363 4327 - Fax +31 50 363 4800 |
| / \ | K.A.Feenstra at chem.rug.nl - http://md.chem.rug.nl/~anton |
| ( ) |-----------------------------------------------------------|
| \__/ | "Nurture Another Mind, Before Yours Expires" (Arrested |
| | Development) |
|________|__
More information about the gromacs.org_gmx-users
mailing list