Fixed. The above test now gives
Skipping unrecognized option for parameter set "dolfin": --bar=baz
Passing options to PETSc: -mat_view_draw
Skipping unrecognized option for parameter set "app_par": --petsc.mat_view_draw
** Changed in: dolfin
Status: Confirmed => Fix Committed
--
You received this bug notification because you are a member of DOLFIN
Team, which is subscribed to DOLFIN.
https://bugs.launchpad.net/bugs/452950
Title:
Parsing command line options for several parameters fails
Status in DOLFIN:
Fix Committed
Bug description:
A user cannot send command line options to both PETSc and a user
defined parameters
./app --petsc.foo --petsc.bar --my_foo bar
Reproduce error:
Save the following in a file parameter_fail.py
*********************************************
from dolfin import *
par = Parameters("app_par", bar="foo")
parameters.parse()
par.parse()
*********************************************
and run it from the prompt using
python parameter_fail.py --petsc.mat_view_draw --bar=baz
_______________________________________________
Mailing list: https://launchpad.net/~dolfin
Post to : [email protected]
Unsubscribe : https://launchpad.net/~dolfin
More help : https://help.launchpad.net/ListHelp