← Back to team overview

dolfin team mailing list archive

Re: [HG DOLFIN] Add str() to Variable interface (in C++) and overload info()

 

On Sun, May 10, 2009 at 12:34:10AM +0200, DOLFIN wrote:
> One or more new changesets pushed to the primary dolfin repository.
> A short summary of the last three changesets is included below.
> 
> changeset:   6112:1b2b19ddacfa92c80d36dc78a5bb4829605a10c0
> tag:         tip
> user:        Anders Logg <logg@xxxxxxxxx>
> date:        Sun May 10 00:33:56 2009 +0200
> files:       dolfin/common/Variable.cpp dolfin/common/Variable.h dolfin/log/Logger.cpp dolfin/log/Table.cpp dolfin/log/Table.h dolfin/log/log.cpp dolfin/log/log.h dolfin/parameter/NewParameters.cpp dolfin/parameter/NewParameters.h sandbox/misc/cpp/main.cpp
> description:
> Add str() to Variable interface (in C++) and overload info()
> to accept a Variable, printing the output of str().

This seemed like the natural thing to do, so we can have

  info(foo);

instead of

  foo.info();

There's a strange bug in str() for Table preventing nested databases
to be printed for the sandbox example.

-- 
Anders

Attachment: signature.asc
Description: Digital signature


References