Parsing command line options for several parameters fails
Bug #452950 reported by
Johan Hake
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DOLFIN |
Fix Released
|
High
|
Anders Logg |
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(
parameters.parse()
par.parse()
*******
and run it from the prompt using
python parameter_fail.py --petsc.
Changed in dolfin: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in dolfin: | |
milestone: | none → 0.9.12 |
Changed in dolfin: | |
assignee: | nobody → Anders Logg (logg) |
Changed in dolfin: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
On Fri, Oct 16, 2009 at 10:11:55AM -0000, Johan Hake wrote: ******* ******* ******* ******* ******* *** "app_par" , bar="foo") ******* ******* ******* ******* ******* *** mat_view_ draw --bar=baz
> Public bug reported:
>
> 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(
>
> parameters.parse()
> par.parse()
> *******
>
> and run it from the prompt using
>
> python parameter_fail.py --petsc.
>
> ** Affects: dolfin
> Importance: Undecided
> Status: New
>
Should we make the parse() command just parse the parameter it knows
and ignore others?
--
Anders