<div style="DIRECTION: ltr"><span class="q">Luciano Costa wrote:<br>&gt; Hi Spoel,<br>&gt;<br>&gt;<br>&gt; I have great admiration for your research and effort in the developement<br>&gt; of gromacs. I have this how example and inspiration for my job. In the
<br>&gt; last week I wrote ask all lists about an question involving structure<br>&gt; factor. I believe that the people in the list, in general, &nbsp;it don't<br>&gt; have pratice with structure factor. I have tried to use g_rdf program
<br>&gt; for to analyse trajectory file with respect structure factor. The system<br>&gt; simulated is constituted by polymers. I have a program that to do<br>&gt; (calculate) structure factor of xyz trajectory file. I did a program
<br>&gt; that convert *.trr file in *.xyz file, but I would like to obtain<br>&gt; structure factor by g_rdf. Unfortunatelly, I had some problems with<br>&gt; respect a &quot; list (in the C source program) &quot; &nbsp;of atom type. Look this:
<br>&gt;<br>&gt; Fatal error:<br>&gt;<br>&gt; Error: atom type (opls_557) not in list (18 types checked)!<br>&gt;<br>&gt; In the font program have:<br><br></span></div>
<div style="DIRECTION: ltr">This is a bug/missing feature in the sense that there are GROMOS atom<br>types hardcoded in the program. I will have a look, but it should be<br>quite easy to fix for yourself if you update t_cmTAble all the way up in
<br>the file. If you look closely you'll see that all the H entries are<br>dientical etc. If you have other atom types then please try to find the<br>correspoonding scattering factors..<br>&nbsp;</div>
<div style="DIRECTION: ltr"><span class="q"><br>&gt;<br>&gt; #################################<br>&gt; int return_atom_type (char *type)<br>&gt; {<br>&gt; &nbsp; int i;<br>&gt;<br>&gt; &nbsp; for (i = 0; (i &lt; asize(CM_t)); i++)
<br>&gt; &nbsp; &nbsp; if (!strcmp (type, CM_t[i].Label))<br>&gt; &nbsp; &nbsp; &nbsp; return i;<br>&gt; &nbsp; gmx_fatal(FARGS,&quot;\nError: atom type (%s) not in list (%d types<br>&gt; checked)!\n&quot;,<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; type,i);<br>&gt;<br>&gt; &nbsp; return 0;
<br>&gt; }<br>&gt; #################################<br>&gt;<br>&gt; I think that it search a string that correspond to atom type in<br>&gt; opls_XXX. When I had construct my input &nbsp;file and how the system wasn't<br>&gt; protein or biomolecules, being polymers, &nbsp;I setted new opls_XXX.
<br>&gt;<br>&gt; Well, I don't know what to do now, because *.gro and topol.top files are<br>&gt; ok. MD simulation is ok.<br>&gt;<br>&gt; Can you help me, please ?!<br>&gt;<br>&gt;<br>&gt; Regards.<br>&gt;<br>&gt; very very thanks and, more time, congratulations by your effort and work.
<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; --<br>&gt; ## &nbsp; &nbsp; Luciano Tavares da Costa &nbsp; &nbsp; &nbsp; ###<br>&gt; Laboratory of Molecular Spectroscopy<br>&gt; ## Zipe Code:05508-000 IQ-USP Brazil#<br>&gt; ##################################
<br><br><br></span></div>
<div style="DIRECTION: ltr">--<br>David.<br>________________________________________________________________________<br>&nbsp;</div>
<div style="DIRECTION: ltr"><span class="sg">David van der Spoel, PhD, Assoc. Prof., Molecular Biophysics group,<br>Dept. of Cell and Molecular Biology, Uppsala University.<br>Husargatan 3, Box 596, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;75124 Uppsala, Sweden
<br>phone: &nbsp;46 18 471 4205 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fax: 46 18 511 755<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:spoel@xray.bmc.uu.se">spoel@xray.bmc.uu.se</a> &nbsp; &nbsp;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:spoel@gromacs.org">
spoel@gromacs.org</a> &nbsp; <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://folding.bmc.uu.se/" target="_blank">http://folding.bmc.uu.se</a><br>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
</span></div><br clear="all"><br>-- <br>##&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Luciano Tavares da Costa&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;###<br>----&gt;&nbsp;&nbsp;&nbsp;&nbsp;Laboratory of Molecular Spectroscopy&nbsp;&nbsp;&nbsp;&nbsp;&lt;-----&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#&nbsp;&nbsp;
<a href="http://lem.iq.usp.br">http://lem.iq.usp.br</a>; mailto: <a href="mailto:ltcnikit@gmail.com">ltcnikit@gmail.com</a>&nbsp;&nbsp;#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;##&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Zipe Code:05508-000 IQ-USP Brazil&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ##&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ###########################################