← Back to team overview

dolfin team mailing list archive

Re: PyDOLFIN and parameter system

 

2008/8/27 Garth N. Wells <gnw20@xxxxxxxxx>:
> 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)

foo.dolfin_set is a rather strange name for this, what about
setParameter or setParam or something?

--
Martin


> leads to the error,
>
>     return _dolfin.Parametrized_dolfin_set(*args)
> TypeError: in method 'Parametrized_dolfin_set', argument 3 of type
> 'std::string'
>
> Garth
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev
>


Follow ups

References