[gmx-developers] Selection default options

Anders Gärdenäs anders.gardenas at gmail.com
Mon Aug 5 18:06:24 CEST 2013


Hello I have a question about gmx::selection.

I want to have an option where you select witch atoms you want to analyze
and get there coordinates.

Something like




options>addOption(SelectionOption("select").required().valueCount(1)
.store(&sel_).onlyAtoms());



The problem is that I want "all" to be default options and I don’t know how
to implement it.

.defaultValue(all).   Won’t work (the input need to be of type
gmx::selection); where running the program and type “–select all” will work.

So in sort how do you use SelectionOption to select “all” by default?



//Anders (wokring at bmc during this summer)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-developers/attachments/20130805/50a89abe/attachment.html>


More information about the gromacs.org_gmx-developers mailing list