← Back to team overview

dolfin team mailing list archive

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

 

Nice to squeeze a bug that is 1.5 year old!

Johan

On Wednesday June 1 2011 08:59:54 Anders Logg wrote:
> 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


Follow ups

References