Discussion:
[gmx-users] Bug in option parsing?
Åke Sandgren
2015-11-17 07:58:37 UTC
Permalink
Hi!

With latest 5.1.1 i get the following

gmx tune_pme -mdrun mdrun_mpi -np 96 -npstring -n -ntomp 1 -s ...
-------------------------------------------------------
Program: gmx tune_pme, VERSION 5.1.1
Source file: src/gromacs/commandline/cmdlineparser.cpp (line 234)
Function: void gmx::CommandLineParser::parse(int*, char**)

Error in user input:
Invalid command-line options
In command-line option -npstring
Too few (valid) values

For more information and tips for troubleshooting, please check the GROMACS
website at http://www.gromacs.org/Documentation/Errors
-------------------------------------------------------

Using -npstring none works as expected, while -npstring -np also fails
with a slightly different error.

----------
Error in user input:
Invalid command-line options
In command-line option -npstring
Too few (valid) values
In command-line option -np
Option specified multiple times
----------
--
Ake Sandgren, HPC2N, Umea University, S-90187 Umea, Sweden
Internet: ***@hpc2n.umu.se Phone: +46 90 7866134 Fax: +46 90-580 14
Mobile: +46 70 7716134 WWW: http://www.hpc2n.umu.se
--
Gromacs Users mailing list

* Please search the archive at http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_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-users or send a mail to gmx-users-***@gromacs.org.
Kutzner, Carsten
2015-11-17 09:09:38 UTC
Permalink
Hi,

there have been changes in the way the command line options are parsed.
You could put the argument to -npstring in quotation marks. I think

-npstring " -n"

(including the space before the " -" is accepted by the parser.

Carsten
Post by Åke Sandgren
Hi!
With latest 5.1.1 i get the following
gmx tune_pme -mdrun mdrun_mpi -np 96 -npstring -n -ntomp 1 -s ...
-------------------------------------------------------
Program: gmx tune_pme, VERSION 5.1.1
Source file: src/gromacs/commandline/cmdlineparser.cpp (line 234)
Function: void gmx::CommandLineParser::parse(int*, char**)
Invalid command-line options
In command-line option -npstring
Too few (valid) values
For more information and tips for troubleshooting, please check the GROMACS
website at http://www.gromacs.org/Documentation/Errors
-------------------------------------------------------
Using -npstring none works as expected, while -npstring -np also fails with a slightly different error.
----------
Invalid command-line options
In command-line option -npstring
Too few (valid) values
In command-line option -np
Option specified multiple times
----------
--
Ake Sandgren, HPC2N, Umea University, S-90187 Umea, Sweden
Mobile: +46 70 7716134 WWW: http://www.hpc2n.umu.se
--
Gromacs Users mailing list
* Please search the archive at http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_List before posting!
* Can't post? Read http://www.gromacs.org/Support/Mailing_Lists
* For (un)subscribe requests visit
--
Gromacs Users mailing list

* Please search the archive at http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_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-users or send a mail to gmx-users-r
Åke Sandgren
2015-11-17 09:53:12 UTC
Permalink
Nope, doesn't help
Post by Kutzner, Carsten
Hi,
there have been changes in the way the command line options are parsed.
You could put the argument to -npstring in quotation marks. I think
-npstring " -n"
(including the space before the " -" is accepted by the parser.
--
Ake Sandgren, HPC2N, Umea University, S-90187 Umea, Sweden
Internet: ***@hpc2n.umu.se Phone: +46 90 7866134 Fax: +46 90-580 14
Mobile: +46 70 7716134 WWW: http://www.hpc2n.umu.se
--
Gromacs Users mailing list

* Please search the archive at http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_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-users or send a mail to gmx-users-***@gromacs.org.
Kutzner, Carsten
2015-11-17 11:37:59 UTC
Permalink
https://gerrit.gromacs.org/#/c/5346/

should solve the issue.

Carsten
Post by Åke Sandgren
Nope, doesn't help
Post by Kutzner, Carsten
Hi,
there have been changes in the way the command line options are parsed.
You could put the argument to -npstring in quotation marks. I think
-npstring " -n"
(including the space before the " -" is accepted by the parser.
--
Ake Sandgren, HPC2N, Umea University, S-90187 Umea, Sweden
Mobile: +46 70 7716134 WWW: http://www.hpc2n.umu.se
--
Gromacs Users mailing list
* Please search the archive at http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_List before posting!
* Can't post? Read http://www.gromacs.org/Support/Mailing_Lists
* For (un)subscribe requests visit
--
Gromacs Users mailing list

* Please search the archive at http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_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-users or send a mail to gmx-users-reques
Loading...