← Back to team overview

dolfin team mailing list archive

Re: PyDOLFIN and parameter system

 

Garth N. Wells skrev den 27/08-2008 følgende:
> How do I set a parameter for an object in PyDOLFIN? I'd like to set 
> Newton solver parameters in demo/nls/nonlinearpoisson/python/demo.py. 
> The code
> 
>      nonlinear_solver = NewtonSolver()
>      nonlinear_solver.dolfin_set("Newton maximum iterations", 50)
> 
> leads to the error,
> 
>      return _dolfin.Parametrized_dolfin_set(*args)
> TypeError: in method 'Parametrized_dolfin_set', argument 3 of type 
> 'std::string'

I added very simple support for Parametrized when working with the SLEPc
solver. However, only string-string arguments are supported. The
generalization is fairly trivial. I'll have a look at this as soon as I get
some spare time.

Ola
 
> Garth
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev


References