<div dir="ltr">Thanks I&#39;ll try that<br><br><div class="gmail_quote">2012/6/5 Peter C. Lai <span dir="ltr">&lt;<a href="mailto:pcl@uab.edu" target="_blank">pcl@uab.edu</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The quick and dirty way is to post-patch Makefile in src/tools.<br>
<br>
I think patching the appropriate Makefile.in is sufficient for configure to<br>
pick up and automake into Makefile if all you need to do is append a make<br>
target.<br>
<br>
As to your previous question, on our cluster, I use Intel ICC 11.1.056<br>
<br>
both openmpi and fftw3 are also built with icc but root builds those and<br>
exposes their libs/headers through Modules, so I just module load them<br>
and specify the appropriate CPPFLAGS, LDFLAGS, and MPICC to configure<br>
(I&#39;m still on 4.5.4 here).<br>
<br>
Btw: If you are patching 4.6 you should ask for someone else on here to tell<br>
you how to add it to the CMake config, since that&#39;s going to be the default<br>
build framework going forward.<br>
<div><div class="h5"><br>
On 2012-06-05 01:43:09AM +0300, Shay Teaching wrote:<br>
&gt; One more question: How do I get my new g_whatever analysis to be included<br>
&gt; in the compilation?<br>
&gt; Simply placing my file in src/tools won&#39;t work of course. How to I place it<br>
&gt; correctly in the build?<br>
&gt; Thanks,<br>
&gt; -Shay<br>
&gt;<br>
&gt; 2012/6/5 Justin A. Lemkul &lt;<a href="mailto:jalemkul@vt.edu">jalemkul@vt.edu</a>&gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On 6/4/12 5:16 PM, Shay Teaching wrote:<br>
&gt; &gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; 2012/6/4 Justin A. Lemkul &lt;<a href="mailto:jalemkul@vt.edu">jalemkul@vt.edu</a> &lt;mailto:<a href="mailto:jalemkul@vt.edu">jalemkul@vt.edu</a>&gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;    On 6/4/12 2:59 PM, Shay Teaching wrote:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;        Dear Gromacs users,<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;        I want to write new analyses for gromacs and compile it (so I&#39;ll<br>
&gt; &gt;&gt; have<br>
&gt; &gt;&gt;        g_whatever) as part of the gromacs package.<br>
&gt; &gt;&gt;        Per the instructions I found on gromacs website, I installed<br>
&gt; &gt;&gt; kdevelop<br>
&gt; &gt;&gt;        and opened<br>
&gt; &gt;&gt;        the gromacs as a project using kdevelop. However I have two<br>
&gt; &gt;&gt; questions:<br>
&gt; &gt;&gt;        1) When I try to compile gromacs source, through kdevelop, I get a<br>
&gt; &gt;&gt;        &quot;permission<br>
&gt; &gt;&gt;        denied&quot; error. I think it is because gromacs installation requires<br>
&gt; &gt;&gt; root<br>
&gt; &gt;&gt;        privileges. Any suggestions on how to bypass that, so I won&#39;t have<br>
&gt; &gt;&gt; to use<br>
&gt; &gt;&gt;        kdevelop as root (which is a *really* bad idea)? (e.g., installing<br>
&gt; &gt;&gt; gromacs<br>
&gt; &gt;&gt;        without root?)<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;    Assuming you&#39;re trying to compile template.c in some system-level<br>
&gt; &gt;&gt; directory,<br>
&gt; &gt;&gt;    you&#39;re certain to run into that problem.  Compile in a different<br>
&gt; &gt;&gt; location.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Actually, I tried installing Gromacs to my home directory, not system<br>
&gt; &gt;&gt; directory.<br>
&gt; &gt;&gt; You&#39;re saying that I&#39;m not supposed to encounter this error?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt; You shouldn&#39;t have permission errors in your home directory.  I&#39;ve never<br>
&gt; &gt; used KDevelop; what happens if you try to compile from a normal command<br>
&gt; &gt; line?<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;        2) Are there any guidelines for writing new g_whatever analyses?<br>
&gt; &gt;&gt; Or any<br>
&gt; &gt;&gt;        general<br>
&gt; &gt;&gt;        suggestions on how to approach it?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;    Write good code? ;)  I don&#39;t really know what you&#39;re asking here, but<br>
&gt; &gt;&gt; if you<br>
&gt; &gt;&gt;    want pointers for writing code, you&#39;ll need to at least state what<br>
&gt; &gt;&gt; you&#39;re doing.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Write good code of course :-)<br>
&gt; &gt;&gt; What I mean is: Is there a proper list of gromacs functions used for<br>
&gt; &gt;&gt; &#39;common&#39;<br>
&gt; &gt;&gt; operations? (such as, reading from trajectory, reading index file,<br>
&gt; &gt;&gt; documentation<br>
&gt; &gt;&gt; of types and data structures for dealing with gromacs trajectory: atom,<br>
&gt; &gt;&gt; molecule, their input and output, etc.)<br>
&gt; &gt;&gt; Of course I&#39;ll open existing analyses, and see how its done there<br>
&gt; &gt;&gt; (g_mindist,<br>
&gt; &gt;&gt; g_rms..) but it would be useful to have like... a list of methods so I<br>
&gt; &gt;&gt; won&#39;t<br>
&gt; &gt;&gt; waste time on stuff that&#39;s already been dealt with.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt; The only related information is probably on the website at<br>
</div></div>&gt; &gt; <a href="http://www.gromacs.org/**Developer_Zone/Programming_**Guide" target="_blank">http://www.gromacs.org/**Developer_Zone/Programming_**Guide</a>&lt;<a href="http://www.gromacs.org/Developer_Zone/Programming_Guide" target="_blank">http://www.gromacs.org/Developer_Zone/Programming_Guide</a>&gt;.<br>

<div class="im">&gt; &gt;  I doubt you&#39;ll get a how-to for coding though.  The approach of looking at<br>
&gt; &gt; existing files for these routines is probably as efficient as it gets.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; -Justin<br>
&gt; &gt;<br>
&gt; &gt; --<br>
</div>&gt; &gt; ==============================**==========<br>
<div class="im">&gt; &gt;<br>
&gt; &gt; Justin A. Lemkul, Ph.D.<br>
&gt; &gt; Research Scientist<br>
&gt; &gt; Department of Biochemistry<br>
&gt; &gt; Virginia Tech<br>
&gt; &gt; Blacksburg, VA<br>
&gt; &gt; jalemkul[at]<a href="http://vt.edu" target="_blank">vt.edu</a> | <a href="tel:%28540%29%20231-9080" value="+15402319080">(540) 231-9080</a><br>
</div>&gt; &gt; <a href="http://www.bevanlab.biochem." target="_blank">http://www.bevanlab.biochem.</a>**<a href="http://vt.edu/Pages/Personal/justin" target="_blank">vt.edu/Pages/Personal/justin</a>&lt;<a href="http://www.bevanlab.biochem.vt.edu/Pages/Personal/justin" target="_blank">http://www.bevanlab.biochem.vt.edu/Pages/Personal/justin</a>&gt;<br>

&gt; &gt;<br>
&gt; &gt; ==============================**==========<br>
<div class="im">&gt; &gt; --<br>
&gt; &gt; gmx-users mailing list    <a href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a><br>
</div>&gt; &gt; <a href="http://lists.gromacs.org/**mailman/listinfo/gmx-users" target="_blank">http://lists.gromacs.org/**mailman/listinfo/gmx-users</a>&lt;<a href="http://lists.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-users</a>&gt;<br>

&gt; &gt; Please search the archive at <a href="http://www.gromacs.org/**" target="_blank">http://www.gromacs.org/**</a><br>
&gt; &gt; Support/Mailing_Lists/Search&lt;<a href="http://www.gromacs.org/Support/Mailing_Lists/Search" target="_blank">http://www.gromacs.org/Support/Mailing_Lists/Search</a>&gt;before posting!<br>
<div class="im">&gt; &gt; Please don&#39;t post (un)subscribe requests to the list. Use the www<br>
&gt; &gt; interface or send it to <a href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a>.<br>
</div>&gt; &gt; Can&#39;t post? Read <a href="http://www.gromacs.org/**Support/Mailing_Lists" target="_blank">http://www.gromacs.org/**Support/Mailing_Lists</a>&lt;<a href="http://www.gromacs.org/Support/Mailing_Lists" target="_blank">http://www.gromacs.org/Support/Mailing_Lists</a>&gt;<br>

<div class="im HOEnZb">&gt; &gt;<br>
<br>
&gt; --<br>
&gt; gmx-users mailing list    <a href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a><br>
&gt; <a href="http://lists.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-users</a><br>
&gt; Please search the archive at <a href="http://www.gromacs.org/Support/Mailing_Lists/Search" target="_blank">http://www.gromacs.org/Support/Mailing_Lists/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 <a href="http://www.gromacs.org/Support/Mailing_Lists" target="_blank">http://www.gromacs.org/Support/Mailing_Lists</a><br>
<br>
<br>
</div><span class="HOEnZb"><font color="#888888">--<br>
==================================================================<br>
Peter C. Lai                    | University of Alabama-Birmingham<br>
Programmer/Analyst              | KAUL 752A<br>
Genetics, Div. of Research      | 705 South 20th Street<br>
<a href="mailto:pcl@uab.edu">pcl@uab.edu</a>                     | Birmingham AL 35294-4461<br>
<a href="tel:%28205%29%20690-0808" value="+12056900808">(205) 690-0808</a>                        |<br>
==================================================================<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
--<br>
gmx-users mailing list    <a href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a><br>
<a href="http://lists.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-users</a><br>
Please search the archive at <a href="http://www.gromacs.org/Support/Mailing_Lists/Search" target="_blank">http://www.gromacs.org/Support/Mailing_Lists/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/Support/Mailing_Lists" target="_blank">http://www.gromacs.org/Support/Mailing_Lists</a><br>
</div></div></blockquote></div><br></div>