Hi Tsjerk.<br><br>Thanks for the prompt answer.<br><br>Good idea, I can take the atom names from a .gro file, nad, probably some strange algorithm can also get the number of atoms per molecule and number of molecules from there, am I right? That would help a lot.
<br><br>But: I&#39;ll still be unable to get atomic masses and point charges. No to mention the box shape. :( And I&#39;ll need a way to read these parameters too, unless I begin to write all them in a really awfull and strange index file.
<br><br>From what I can understand on the &quot;file logistics&quot; of gromacs, these information are only stored in the whole &quot;.top .itp .atp .rtp structure of files&quot; or, in a condensed form, in the &quot;.tpr&quot; file. Is that right?
<br><br>Thanks a lot for all the information and help!<br><br>Sincerally yours,<br><br>Jones<br><br><div><span class="gmail_quote">On 9/30/07, <b class="gmail_sendername">Tsjerk Wassenaar</b> &lt;<a href="mailto:tsjerkw@gmail.com">
tsjerkw@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Jones,<br><br>You probably only need to read the atoms and such from a .pdb or .gro
<br>file, unless you really want to have topology information (bondedness,<br>molecule definitions, etc). Then you do have to read the topology file<br>or a .tpr file directly. Don&#39;t recall having seen the fortran<br>
implementations for these... But maybe Bert knows better.<br><br>Just one note... There&#39;s no shape in PBC. The lattice vectors are all<br>there is, and these are stored in the .xtc file (as you already know).<br><br>Cheers,
<br><br>Tsjerk<br><br>On 9/30/07, Jones de Andrade &lt;<a href="mailto:johannesrs@gmail.com">johannesrs@gmail.com</a>&gt; wrote:<br>&gt; Hi Bert.<br>&gt;<br>&gt; Thanks a lot for the help. I&#39;ve found the mistakes, one programming minor
<br>&gt; issue and a compiler configuration a bit of &quot;hidden&quot; in the config files.<br>&gt; Old time mistakes just choose to arise at its worst moments. :)<br>&gt;<br>&gt; At the moment, I already can read the coordinates, number of atoms, box
<br>&gt; coordinates, step number, simulation time and precision. I guess this is all<br>&gt; what is stored in the .xtc files themselves, am I right?<br>&gt;<br>&gt;&nbsp;&nbsp;I have so one extra question: I guess that extra information as atom names,
<br>&gt; number of molecules of type X, number of molecular types, box and pbc<br>&gt; &quot;shape&quot; and atomic charges and masses are *not* stored in the .xtc files, am<br>&gt; I right? Ok, the &quot;integer&quot; stuff (number of molecules of type X, number of
<br>&gt; molecular types, box and pbc) could be written in a special .ndx file, but<br>&gt; that would, by all means, looks at least &quot;diselegant&quot;.<br>&gt;<br>&gt; If so, the only two possible ways of getting them is reading or the .top and
<br>&gt; .itp files correctly, or to read the .tpr file, correct? Now, is there any<br>&gt; guideline available on how to deal with those files?<br>&gt;<br>&gt; Thanks a lot everybody for all the help.<br>&gt;<br>&gt;<br>
&gt; Sincerally yours,<br>&gt;<br>&gt; Jones<br>&gt;<br>&gt; On 9/29/07, Bert de Groot &lt;<a href="mailto:bgroot@gwdg.de">bgroot@gwdg.de</a>&gt; wrote:<br>&gt; &gt; On Sat, 29 Sep 2007, Jones de Andrade wrote:<br>&gt; &gt;
<br>&gt; &gt; &gt; Hi Bert.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Thank you for the prompt answer.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Just did as instructed, but got the following:<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; CruNumMac src/own/B/9/xtc 286% ifort 
xtciof.f90 test_xtc.f90<br>&gt; &gt; &gt; -L/home/johannes/src/own/B/9/xtc/xtc/ -lxrdf -lg2c<br>&gt; &gt; &gt; IPO link: can not find -lxrdf<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; well, apparently the path you specify with -L does not contain a
<br>&gt; &gt; libxdrf.a<br>&gt; &gt;<br>&gt; &gt; the way you called it the compiler expects it to be located here:<br>&gt; &gt; /home/johannes/src/own/B/9/xtc/xtc/libxdrf.a<br>&gt; &gt;<br>&gt; &gt; also, IIRC, the xtcio stuff is already linked into the 
libxdrf.a, so no<br>&gt; &gt; need to include it again.<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; &gt; ifort: error: problem during multi-file optimization compilation (code<br>&gt; 1)<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Looks better, in the sense that the number of error messages was
<br>&gt; reduced.<br>&gt; &gt; &gt; But still doesn&#39;t accept to link to the xrdf library.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Tried that with and without re-make of the library (strange fact that<br>&gt; the<br>&gt; &gt; &gt; SGI arch is to be used in linux) and also tried to say -llibxrdf instead
<br>&gt; of<br>&gt; &gt; &gt; -lxrdf. Nothing worked.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Have you or someone come across such an error before? Any clue of what<br>&gt; can<br>&gt; &gt; &gt; possibly be going wrong?<br>&gt; &gt; &gt;
<br>&gt; &gt; &gt; Thanks a lot in advance...<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Sincerally yours,<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Jones<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; On 9/29/07, Bert de Groot &lt;<a href="mailto:bgroot@gwdg.de">
bgroot@gwdg.de</a>&gt; wrote:<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Hi,<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; try:<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; download<br>&gt; &gt; &gt; &gt; <a href="http://www.mpibpc.gwdg.de/groups/de_groot/xtc.tar.gz">
http://www.mpibpc.gwdg.de/groups/de_groot/xtc.tar.gz</a><br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; (and optionally issue a &#39;make&#39; in the xtc directory after unpacking)<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; in the linking stage, use something like
<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; ifort -blabla -lxdrf -L/wherever/xtc -lg2c<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; your smalll test code looks OK apart from the fact that I don&#39;t know<br>&gt; what
<br>&gt; &gt; &gt; &gt; happens if you read&amp;write from the same file.<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Bert<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Bert<br>&gt; &gt;
<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; ________________________________________________<br>&gt; &gt; Bert de Groot, PhD<br>&gt; &gt;<br>&gt; &gt; Max Planck Institute for Biophysical Chemistry<br>&gt; &gt; Computational biomolecular dynamics group
<br>&gt; &gt; Am Fassberg 11<br>&gt; &gt; 37077 Goettingen, Germany<br>&gt; &gt;<br>&gt; &gt; tel: +49-551-2012308, fax: +49-551-2012302<br>&gt; &gt;<br>&gt; &gt; <a href="http://www.mpibpc.gwdg.de/groups/de_groot">http://www.mpibpc.gwdg.de/groups/de_groot
</a><br>&gt; &gt; _______________________________________________<br>&gt; &gt; gmx-users mailing list&nbsp;&nbsp;&nbsp;&nbsp; <a href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a><br>&gt; &gt; <a href="http://www.gromacs.org/mailman/listinfo/gmx-users">
http://www.gromacs.org/mailman/listinfo/gmx-users</a><br>&gt; &gt; Please search the archive at <a href="http://www.gromacs.org/search">http://www.gromacs.org/search</a> before posting!<br>&gt; &gt; Please don&#39;t post (un)subscribe requests to the list. Use the
<br>&gt; &gt; www interface or send it to <a href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a> .<br>&gt; &gt; Can&#39;t post? Read<br>&gt; <a href="http://www.gromacs.org/mailing_lists/users.php">
http://www.gromacs.org/mailing_lists/users.php</a><br>&gt; &gt;<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; gmx-users mailing list&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org
</a><br>&gt; <a href="http://www.gromacs.org/mailman/listinfo/gmx-users">http://www.gromacs.org/mailman/listinfo/gmx-users</a><br>&gt; Please search the archive at <a href="http://www.gromacs.org/search">http://www.gromacs.org/search
</a> before posting!<br>&gt; Please don&#39;t post (un)subscribe requests to the list. Use the<br>&gt; www interface or send it to <a href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a>.<br>&gt; Can&#39;t post? Read
<br>&gt; <a href="http://www.gromacs.org/mailing_lists/users.php">http://www.gromacs.org/mailing_lists/users.php</a><br>&gt;<br><br><br>--<br>Tsjerk A. Wassenaar, Ph.D.<br>Junior UD (post-doc)<br>Biomolecular NMR, Bijvoet Center
<br>Utrecht University<br>Padualaan 8<br>3584 CH Utrecht<br>The Netherlands<br>P: +31-30-2539931<br>F: +31-30-2537623<br>_______________________________________________<br>gmx-users mailing list&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:gmx-users@gromacs.org">
gmx-users@gromacs.org</a><br><a href="http://www.gromacs.org/mailman/listinfo/gmx-users">http://www.gromacs.org/mailman/listinfo/gmx-users</a><br>Please search the archive at <a href="http://www.gromacs.org/search">http://www.gromacs.org/search
</a> before posting!<br>Please don&#39;t post (un)subscribe requests to the list. Use the<br>www interface or send it to <a href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a>.<br>Can&#39;t post? Read 
<a href="http://www.gromacs.org/mailing_lists/users.php">http://www.gromacs.org/mailing_lists/users.php</a><br></blockquote></div><br>