<div dir="ltr">Hi,<div><br></div><div>Also, there&#39;s existing .mdp options for user-supplied ints, reals and groups, so you only need to get involved with the mess when you decide your idea is working well.</div><div><br></div><div>Mark</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Nov 10, 2015 at 10:24 PM Kutzner, Carsten &lt;<a href="mailto:ckutzne@gwdg.de">ckutzne@gwdg.de</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
You also need to write the value of the variable to .tpr file. Look for do_inputrec() in tpxio. cpp<br>
<br>
Carsten<br>
<br>
<br>
<br>
<br>
&gt; Am 10.11.2015 um 21:11 schrieb Vedran Miletić &lt;<a href="mailto:rivanvx@gmail.com" target="_blank">rivanvx@gmail.com</a>&gt;:<br>
&gt;<br>
&gt; Hello,<br>
&gt;<br>
&gt; I&#39;m trying to add a boolean mdp option. I added the following:<br>
&gt;<br>
&gt; * in src/gromacs/gmxpreprocess/readir.cpp:<br>
&gt;<br>
&gt; EETYPE(&quot;my-option&quot;, ir-&gt;bMyOption, yesno_names);<br>
&gt;<br>
&gt; *in src/gromacs/legacyheaders/types/inputrec.h in typedef struct t_inputrec<br>
&gt;<br>
&gt; gmx_bool bMyOption;<br>
&gt;<br>
&gt; * in src/gromacs/gmxlib/txtdump.cpp<br>
&gt;<br>
&gt; PS(&quot;my-option&quot;, EBOOL(ir-&gt;bMyOption));<br>
&gt;<br>
&gt; When I put my-option = yes in .mdp, and subserquently run grompp and<br>
&gt; mdrun, ir-&gt;bMyOption is 0 in gmx::do_md(). I&#39;m printing the value of<br>
&gt; ir-&gt;bMyOption in while loop. Am I missing something?<br>
&gt;<br>
&gt; Regards,<br>
&gt; Vedran<br>
&gt;<br>
&gt; --<br>
&gt; Vedran Miletić<br>
&gt; <a href="http://vedranmileti.ch/" rel="noreferrer" target="_blank">http://vedranmileti.ch/</a><br>
&gt; --<br>
&gt; Gromacs Developers mailing list<br>
&gt;<br>
&gt; * Please search the archive at <a href="http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List" rel="noreferrer" target="_blank">http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List</a> before posting!<br>
&gt;<br>
&gt; * Can&#39;t post? Read <a href="http://www.gromacs.org/Support/Mailing_Lists" rel="noreferrer" target="_blank">http://www.gromacs.org/Support/Mailing_Lists</a><br>
&gt;<br>
&gt; * For (un)subscribe requests visit<br>
&gt; <a href="https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers" rel="noreferrer" target="_blank">https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers</a> or send a mail to <a href="mailto:gmx-developers-request@gromacs.org" target="_blank">gmx-developers-request@gromacs.org</a>.<br>
--<br>
Gromacs Developers mailing list<br>
<br>
* Please search the archive at <a href="http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List" rel="noreferrer" target="_blank">http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List</a> before posting!<br>
<br>
* Can&#39;t post? Read <a href="http://www.gromacs.org/Support/Mailing_Lists" rel="noreferrer" target="_blank">http://www.gromacs.org/Support/Mailing_Lists</a><br>
<br>
* For (un)subscribe requests visit<br>
<a href="https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers" rel="noreferrer" target="_blank">https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers</a> or send a mail to <a href="mailto:gmx-developers-request@gromacs.org" target="_blank">gmx-developers-request@gromacs.org</a>.<br>
</blockquote></div>