<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><div style="text-align: left;">Hi,<br><br>In the Makefiles in kernel, tools and ngmx you will see that all binaries<br>depend on gmxlib and mdlib.<br>So if you type make in the top level directory or in src/kernel,<br>first bondfree.c will be compiled and put into the gmxlib library,<br>in kernel make will then notice that gmxlib is new and relink everything.<br><br>If you only type make (mdrun) in kernel, you new potential will not be in there.<br>Typing make in src or the top level dir is always safe.<br><br>Berk<br></div><br><br><hr id="stopSpelling">&gt; Date: Wed, 22 Oct 2008 10:06:44 -0400<br>&gt; From: jianzou@gmail.com<br>&gt; To: gmx-users@gromacs.org<br>&gt; Subject: [gmx-users] Re: modify bondfree.c and recompile<br>&gt; <br>&gt; Hi Mark, David and Bess,<br>&gt; <br>&gt; Thank you all for the suggestions.<br>&gt; <br>&gt; <br>&gt; I know the dependency has to be somewhere in the Makefiles or the<br>&gt; files they include but I cannot find it. What I am doing is simply<br>&gt; "make" under top-level source directory followed by make install. In<br>&gt; this case, the content of all the files (except the RC files) under<br>&gt; bin and lib will be rebuild and differ from the previous build, even<br>&gt; from the same source.<br>&gt; <br>&gt; Berk told me to do "make" in src/gmxlib. I checked the top-level<br>&gt; Makefile and the the rules for "make mdrun" is "make" under<br>&gt; src/gmxlib, src/mdlib and src/kernel, so it seems for my case "make<br>&gt; mdrun" then "make install-mdrun" should be enough to update the<br>&gt; binary, but how about the library?<br>&gt; <br>&gt; The potential I am working is 1D only instead of 3D, therefore the<br>&gt; tabulated bonded/nonbond potential may not apply to my problem.<br>&gt; "Walls" with wall_type=table in gmx4 could be a solution. But  I do<br>&gt; not find the implementation details like Chapter 6.7 for tabulated<br>&gt; nonbond interaction, and therefore do not know how to make<br>&gt; interactions of each atomtype with the wall different.<br>&gt; <br>&gt; <br>&gt; Hi Yang He,<br>&gt; <br>&gt; I started from Appendix B.4, where the files to be modified for bonded<br>&gt; potential are listed (Files No.6 and No.12 are the same). You may also<br>&gt; have a look at include/physics.h and include/vec.h.<br>&gt; <br>&gt; <br>&gt; Regards,<br>&gt; <br>&gt; Jian<br>&gt; <br>&gt; On Wed, Oct 22, 2008 at 3:40 AM,  &lt;gmx-users-request@gromacs.org&gt; wrote:<br>&gt; &gt;<br>&gt; &gt; Message: 1<br>&gt; &gt; Date: Wed, 22 Oct 2008 11:57:46 +1100<br>&gt; &gt; From: Mark Abraham &lt;Mark.Abraham@anu.edu.au&gt;<br>&gt; &gt; Subject: Re: [gmx-users] modify bondfree.c and recompile<br>&gt; &gt; To: Discussion list for GROMACS users &lt;gmx-users@gromacs.org&gt;<br>&gt; &gt; Message-ID: &lt;48FE7A8A.3000704@anu.edu.au&gt;<br>&gt; &gt; Content-Type: text/plain; charset=UTF-8; format=flowed<br>&gt; &gt;<br>&gt; &gt; Jian Zou wrote:<br>&gt; &gt;&gt; Hi,<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; If I only change some functional form in bondfree.c (the number of<br>&gt; &gt;&gt; parameters are kept the same), can I just do "make mdrun" and "make<br>&gt; &gt;&gt; install-mdrun" to recompile from the source?<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; I cannot find the dependency between the source files and the Gromacs<br>&gt; &gt;&gt; utilities (grompp and mdrun).<br>&gt; &gt;<br>&gt; &gt; It's there in the Makefiles, but you don't need to know about it. Just<br>&gt; &gt; use make (or just make mdrun) from the top-level source directory.<br>&gt; &gt;<br>&gt; &gt;&gt; I compare the tpr file generated before and after the change and they<br>&gt; &gt;&gt; are the same. Therefore it seems to me that grompp does not read the<br>&gt; &gt;&gt; formulation of bonded interactions, am I right?<br>&gt; &gt;<br>&gt; &gt; grompp isn't changing, so its output is the same. All it does is<br>&gt; &gt; interpret the contents of your .top file and tell mdrun which function<br>&gt; &gt; to use.<br>&gt; &gt;<br>&gt; &gt; Mark<br>&gt; <br>&gt; <br>&gt; &gt; Message: 5<br>&gt; &gt; Date: Wed, 22 Oct 2008 08:09:17 +0200<br>&gt; &gt; From: David van der Spoel &lt;spoel@xray.bmc.uu.se&gt;<br>&gt; &gt; Subject: Re: [gmx-users] modify bondfree.c and recompile<br>&gt; &gt; To: Discussion list for GROMACS users &lt;gmx-users@gromacs.org&gt;<br>&gt; &gt; Message-ID: &lt;48FEC38D.8060907@xray.bmc.uu.se&gt;<br>&gt; &gt; Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>&gt; &gt;<br>&gt; &gt; He, Yang wrote:<br>&gt; &gt;&gt; Hi Jian,<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Do you also need to change the source code to get a new potential function? I am also engaged in this job. DO you have any experience about this job?<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt; You can use tables for bonded potentials as well, without changing any code.<br>&gt; &gt;<br>&gt; &gt;&gt; Regards,<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Yang<br>&gt; &gt;&gt; ________________________________________<br>&gt; &gt;&gt; From: gmx-users-bounces@gromacs.org [gmx-users-bounces@gromacs.org] On Behalf Of Jian Zou [jianzou@gmail.com]<br>&gt; &gt;&gt; Sent: Tuesday, October 21, 2008 7:24 AM<br>&gt; &gt;&gt; To: gmx-developers@gromacs.org; gmx-users@gromacs.org<br>&gt; &gt;&gt; Subject: [gmx-users] modify bondfree.c and recompile<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Hi,<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; If I only change some functional form in bondfree.c (the number of<br>&gt; &gt;&gt; parameters are kept the same), can I just do "make mdrun" and "make<br>&gt; &gt;&gt; install-mdrun" to recompile from the source?<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; I cannot find the dependency between the source files and the Gromacs<br>&gt; &gt;&gt; utilities (grompp and mdrun).<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; I compare the tpr file generated before and after the change and they<br>&gt; &gt;&gt; are the same. Therefore it seems to me that grompp does not read the<br>&gt; &gt;&gt; formulation of bonded interactions, am I right?<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Thank you very much for the reply.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Regards,<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Jian<br>&gt; &gt;&gt; _______________________________________________<br>&gt; &gt;&gt; gmx-users mailing list    gmx-users@gromacs.org<br>&gt; &gt;&gt; http://www.gromacs.org/mailman/listinfo/gmx-users<br>&gt; &gt;&gt; Please search the archive at http://www.gromacs.org/search before posting!<br>&gt; &gt;&gt; Please don't post (un)subscribe requests to the list. Use the<br>&gt; &gt;&gt; www interface or send it to gmx-users-request@gromacs.org.<br>&gt; &gt;&gt; Can't post? Read http://www.gromacs.org/mailing_lists/users.php<br>&gt; &gt;&gt; _______________________________________________<br>&gt; &gt;&gt; gmx-users mailing list    gmx-users@gromacs.org<br>&gt; &gt;&gt; http://www.gromacs.org/mailman/listinfo/gmx-users<br>&gt; &gt;&gt; Please search the archive at http://www.gromacs.org/search before posting!<br>&gt; &gt;&gt; Please don't post (un)subscribe requests to the list. Use the<br>&gt; &gt;&gt; www interface or send it to gmx-users-request@gromacs.org.<br>&gt; &gt;&gt; Can't post? Read http://www.gromacs.org/mailing_lists/users.php<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; --<br>&gt; &gt; David.<br>&gt; &gt; ________________________________________________________________________<br>&gt; &gt; David van der Spoel, PhD, Professor of Biology<br>&gt; &gt; Dept. of Cell and Molecular Biology, Uppsala University.<br>&gt; &gt; Husargatan 3, Box 596,          75124 Uppsala, Sweden<br>&gt; &gt; phone:  46 18 471 4205          fax: 46 18 511 755<br>&gt; &gt; spoel@xray.bmc.uu.se    spoel@gromacs.org   http://folding.bmc.uu.se<br>&gt; &gt; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br>&gt; _______________________________________________<br>&gt; gmx-users mailing list    gmx-users@gromacs.org<br>&gt; http://www.gromacs.org/mailman/listinfo/gmx-users<br>&gt; Please search the archive at http://www.gromacs.org/search before posting!<br>&gt; Please don't post (un)subscribe requests to the list. Use the <br>&gt; www interface or send it to gmx-users-request@gromacs.org.<br>&gt; Can't post? Read http://www.gromacs.org/mailing_lists/users.php<br><br /><hr />Express yourself instantly with MSN Messenger! <a href='http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/' target='_new'>MSN Messenger</a></body>
</html>