<p dir="ltr">Hi,</p>
<p dir="ltr">You need code in tpxio.cpp to read and write the .tpr file. Pay attention to the stuff at the top of that file, too.</p>
<p dir="ltr">Mark</p>
<br><div class="gmail_quote"><div dir="ltr">On Tue, 10 Nov 2015 21:10 Vedran Miletić &lt;<a href="mailto:rivanvx@gmail.com">rivanvx@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I&#39;m trying to add a boolean mdp option. I added the following:<br>
<br>
* in src/gromacs/gmxpreprocess/readir.cpp:<br>
<br>
EETYPE(&quot;my-option&quot;, ir-&gt;bMyOption, yesno_names);<br>
<br>
*in src/gromacs/legacyheaders/types/inputrec.h in typedef struct t_inputrec<br>
<br>
gmx_bool bMyOption;<br>
<br>
* in src/gromacs/gmxlib/txtdump.cpp<br>
<br>
PS(&quot;my-option&quot;, EBOOL(ir-&gt;bMyOption));<br>
<br>
When I put my-option = yes in .mdp, and subserquently run grompp and<br>
mdrun, ir-&gt;bMyOption is 0 in gmx::do_md(). I&#39;m printing the value of<br>
ir-&gt;bMyOption in while loop. Am I missing something?<br>
<br>
Regards,<br>
Vedran<br>
<br>
--<br>
Vedran Miletić<br>
<a href="http://vedranmileti.ch/" rel="noreferrer" target="_blank">http://vedranmileti.ch/</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>.</blockquote></div>