← Back to team overview

dolfin team mailing list archive

Re: uBLASKrylovMatrix and Python callbacks: now the fun begins

 

On Tue, Apr 14, 2009 at 02:36:59PM +0200, Martin Sandve Alnæs wrote:
> On Tue, Apr 14, 2009 at 12:36 PM, Anders Logg <logg@xxxxxxxxx> wrote:
> > On Tue, Apr 14, 2009 at 09:13:41AM +0200, Johan Hake wrote:
> >> On Monday 13 April 2009 22:23:12 Robert Kirby wrote:
> >> > I didn't see it as a sub of cpp.  thanks for pointing that out.  no_prec is
> >> > a better namegiven what "None" means in python.
> >>
> >> I think that it was not imported to the main dolfin namespace because of it
> >> resemblens to the Python None.
> >>
> >> Untill we have settled the enum vs string vs parameters we can just declare a
> >> variable in the PyDOLFIN namespace
> >>
> >>   no_prec = 0
> >>
> >> which would work fine in this case as the enums from DOLFIN is mapped to
> >> integer variables in Python.
> >>
> >> Johan
> >
> > I vote for strings, and using the parameter system whenever possible.
> 
> A nice feature for the parameter system would be printing a message with valid
> values whenever the user tries to set some string that doesn't make sense.
> 
> Martin

Yes, that would be good to have. Added to TODO list.

-- 
Anders

Attachment: signature.asc
Description: Digital signature


References