[gmx-developers] Adding a boolean mdp option
Mark Abraham
mark.j.abraham at gmail.com
Tue Nov 10 22:04:42 CET 2015
Hi,
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.
Mark
On Tue, 10 Nov 2015 21:10 Vedran Miletić <rivanvx at gmail.com> wrote:
> Hello,
>
> I'm trying to add a boolean mdp option. I added the following:
>
> * in src/gromacs/gmxpreprocess/readir.cpp:
>
> EETYPE("my-option", ir->bMyOption, yesno_names);
>
> *in src/gromacs/legacyheaders/types/inputrec.h in typedef struct t_inputrec
>
> gmx_bool bMyOption;
>
> * in src/gromacs/gmxlib/txtdump.cpp
>
> PS("my-option", EBOOL(ir->bMyOption));
>
> When I put my-option = yes in .mdp, and subserquently run grompp and
> mdrun, ir->bMyOption is 0 in gmx::do_md(). I'm printing the value of
> ir->bMyOption in while loop. Am I missing something?
>
> Regards,
> Vedran
>
> --
> Vedran Miletić
> http://vedranmileti.ch/
> --
> Gromacs Developers mailing list
>
> * Please search the archive at
> http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List before
> posting!
>
> * Can't post? Read http://www.gromacs.org/Support/Mailing_Lists
>
> * For (un)subscribe requests visit
> https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers
> or send a mail to gmx-developers-request at gromacs.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-developers/attachments/20151110/b27616c9/attachment-0003.html>
More information about the gromacs.org_gmx-developers
mailing list