← Back to team overview

dolfin team mailing list archive

[Bug 452950] [NEW] Parsing command line options for several parameters fails

 

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("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

** Affects: dolfin
     Importance: Undecided
         Status: New

-- 
Parsing command line options for several parameters fails
https://bugs.launchpad.net/bugs/452950
You received this bug notification because you are subscribed to DOLFIN.

Status in DOLFIN: New

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


Follow ups

References