<div dir="ltr"><br><br><div class="gmail_quote">2012/6/5 Erik Marklund <span dir="ltr">&lt;<a href="mailto:erikm@xray.bmc.uu.se" target="_blank">erikm@xray.bmc.uu.se</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><br><div><div>5 jun 2012 kl. 14.23 skrev Shay Teaching:</div><div class="im"><br><blockquote type="cite"><div dir="ltr"><br><br><div class="gmail_quote">2012/6/5 Mark Abraham <span dir="ltr">&lt;<a href="mailto:Mark.Abraham@anu.edu.au" target="_blank">Mark.Abraham@anu.edu.au</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On 5/06/2012 9:11 AM, Peter C. Lai wrote:<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>
</blockquote>
<br></div>
That&#39;s easy with CMake - just add your tool to the list in src/tools/CMakeLists.txt and re-make (which I expect will trigger a re-cmake automatically).<span><font color="#888888"><br></font></span></blockquote>
<div>How about in gromacs 4.0.7? Is it as Peter says?Just add it manually to the Makefile in src/tools, or is there an automatic way to generate this make file?<br></div></div></div></blockquote><div><br></div></div><div>
Yes, IIRC.</div><div><br></div><div>If this is something that is useful for others, then perhaps you should aim at a more recent version than 4.0.7</div><div><br></div><div>Best,</div><div><br></div><div>Erik</div><div><div class="h5">
<br></div></div></div></div></blockquote><div>My research group is currently finishing up some projects that started with 4.0.x, but I&#39;ll make sure to make it easily passable to the 4.5.x if it seems useful.<br>Thanks,<br>
-Shay <br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div><div><div class="h5"><blockquote type="cite">
<div dir="ltr"><div class="gmail_quote"><div> <br></div><blockquote class="gmail_quote" style="margin-top:0pt;margin-right:0pt;margin-bottom:0pt;margin-left:0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">

<span><font color="#888888">
<br>
Mark</font></span><div><div><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
On 2012-06-05 01:43:09AM +0300, Shay Teaching wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
One more question: How do I get my new g_whatever analysis to be included<br>
in the compilation?<br>
Simply placing my file in src/tools won&#39;t work of course. How to I place it<br>
correctly in the build?<br>
Thanks,<br>
-Shay<br>
<br>
2012/6/5 Justin A. Lemkul&lt;<a href="mailto:jalemkul@vt.edu" target="_blank">jalemkul@vt.edu</a>&gt;<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
On 6/4/12 5:16 PM, Shay Teaching wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
2012/6/4 Justin A. Lemkul&lt;<a href="mailto:jalemkul@vt.edu" target="_blank">jalemkul@vt.edu</a>&lt;mailto:<a href="mailto:jalemkul@vt.edu" target="_blank"><u></u>jalemkul@vt.edu</a>&gt;&gt;<br>
<br>
<br>
<br>
<br>
    On 6/4/12 2:59 PM, Shay Teaching wrote:<br>
<br>
        Dear Gromacs users,<br>
<br>
        I want to write new analyses for gromacs and compile it (so I&#39;ll<br>
have<br>
        g_whatever) as part of the gromacs package.<br>
        Per the instructions I found on gromacs website, I installed<br>
kdevelop<br>
        and opened<br>
        the gromacs as a project using kdevelop. However I have two<br>
questions:<br>
        1) When I try to compile gromacs source, through kdevelop, I get a<br>
        &quot;permission<br>
        denied&quot; error. I think it is because gromacs installation requires<br>
root<br>
        privileges. Any suggestions on how to bypass that, so I won&#39;t have<br>
to use<br>
        kdevelop as root (which is a *really* bad idea)? (e.g., installing<br>
gromacs<br>
        without root?)<br>
<br>
<br>
    Assuming you&#39;re trying to compile template.c in some system-level<br>
directory,<br>
    you&#39;re certain to run into that problem.  Compile in a different<br>
location.<br>
<br>
Actually, I tried installing Gromacs to my home directory, not system<br>
directory.<br>
You&#39;re saying that I&#39;m not supposed to encounter this error?<br>
<br>
<br>
</blockquote>
You shouldn&#39;t have permission errors in your home directory.  I&#39;ve never<br>
used KDevelop; what happens if you try to compile from a normal command<br>
line?<br>
<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
        2) Are there any guidelines for writing new g_whatever analyses?<br>
Or any<br>
        general<br>
        suggestions on how to approach it?<br>
<br>
<br>
    Write good code? ;)  I don&#39;t really know what you&#39;re asking here, but<br>
if you<br>
    want pointers for writing code, you&#39;ll need to at least state what<br>
you&#39;re doing.<br>
<br>
Write good code of course :-)<br>
What I mean is: Is there a proper list of gromacs functions used for<br>
&#39;common&#39;<br>
operations? (such as, reading from trajectory, reading index file,<br>
documentation<br>
of types and data structures for dealing with gromacs trajectory: atom,<br>
molecule, their input and output, etc.)<br>
Of course I&#39;ll open existing analyses, and see how its done there<br>
(g_mindist,<br>
g_rms..) but it would be useful to have like... a list of methods so I<br>
won&#39;t<br>
waste time on stuff that&#39;s already been dealt with.<br>
<br>
<br>
</blockquote>
The only related information is probably on the website at<br>
<a href="http://www.gromacs.org/**Developer_Zone/Programming_**Guide" target="_blank">http://www.gromacs.org/**<u></u>Developer_Zone/Programming_**<u></u>Guide</a>&lt;<a href="http://www.gromacs.org/Developer_Zone/Programming_Guide" target="_blank">http://www.gromacs.org/<u></u>Developer_Zone/Programming_<u></u>Guide</a>&gt;.<br>


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


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


Please search the archive at <a href="http://www.gromacs.org/**" target="_blank">http://www.gromacs.org/**</a><br>
Support/Mailing_Lists/Search&lt;<a href="http://www.gromacs.org/Support/Mailing_Lists/Search" target="_blank">h<u></u>ttp://www.gromacs.org/Support/<u></u>Mailing_Lists/Search</a>&gt;before posting!<br>
Please don&#39;t post (un)subscribe requests to the list. Use the www<br>
interface or send it to <a href="mailto:gmx-users-request@gromacs.org" target="_blank">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/**<u></u>Support/Mailing_Lists</a>&lt;<a href="http://www.gromacs.org/Support/Mailing_Lists" target="_blank">http://<u></u>www.gromacs.org/Support/<u></u>Mailing_Lists</a>&gt;<br>


<br>
</blockquote>
-- <br>
gmx-users mailing list    <a href="mailto:gmx-users@gromacs.org" target="_blank">gmx-users@gromacs.org</a><br>
<a href="http://lists.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://lists.gromacs.org/<u></u>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/<u></u>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" target="_blank">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/<u></u>Support/Mailing_Lists</a><br>
</blockquote>
<br>
</blockquote>
<br>
-- <br>
gmx-users mailing list    <a href="mailto:gmx-users@gromacs.org" target="_blank">gmx-users@gromacs.org</a><br>
<a href="http://lists.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://lists.gromacs.org/<u></u>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/<u></u>Support/Mailing_Lists/Search</a> before posting!<br>
Please don&#39;t post (un)subscribe requests to the list. Use the www interface or send it to <a href="mailto:gmx-users-request@gromacs.org" target="_blank">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/<u></u>Support/Mailing_Lists</a><br>
</div></div></blockquote></div><br></div>
-- <br>gmx-users mailing list    <a href="mailto:gmx-users@gromacs.org" target="_blank">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" target="_blank">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></blockquote>
</div></div></div><br><div>
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">
<div>-----------------------------------------------</div><div>Erik Marklund, PhD</div><div>Dept. of Cell and Molecular Biology, Uppsala University.</div><div>Husargatan 3, Box 596,    75124 Uppsala, Sweden</div><div>phone:    <a href="tel:%2B46%2018%20471%206688" value="+46184716688" target="_blank">+46 18 471 6688</a>        fax: <a href="tel:%2B46%2018%20511%20755" value="+4618511755" target="_blank">+46 18 511 755</a></div>
<div><a href="mailto:erikm@xray.bmc.uu.se" target="_blank">erikm@xray.bmc.uu.se</a></div><div><a href="http://www2.icm.uu.se/molbio/elflab/index.html" target="_blank">http://www2.icm.uu.se/molbio/elflab/index.html</a></div>
</div></span></div></span></span>
</div>
<br></div><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></blockquote></div><br></div>