← Back to team overview

dolfin team mailing list archive

[HG DOLFIN] Make Parameters::print more compact

 

One or more new changesets pushed to the primary dolfin repository.
A short summary of the last three changesets is included below.

changeset:   6103:e3aca2ed7159a2f03aec94547d3ac3e6ee4c1c1d
tag:         tip
user:        Anders Logg <logg@xxxxxxxxx>
date:        Fri May 08 17:58:57 2009 +0200
files:       dolfin/parameter/Parameters.cpp
description:
Make Parameters::print more compact


changeset:   6102:f5603666637e2311126a9b6a11e3002fc928e0d3
user:        Anders Logg <logg@xxxxxxxxx>
date:        Fri May 08 17:24:05 2009 +0200
files:       dolfin/log/Logger.cpp dolfin/log/Table.cpp dolfin/log/Table.h dolfin/parameter/NewParameter.cpp dolfin/parameter/NewParameter.h dolfin/parameter/Parameters.cpp dolfin/parameter/Parameters.h sandbox/misc/cpp/main.cpp
description:
Pretty printing of parameter database.

  parameters.print();

gives

  my parameters       |  value type  value       range  access count  change count
  --------------------------------------------------------------------------------
  max iterations      |         int    500   [0, 1000]             1             1
  relative tolerance  |      double    0.1  [1e-16, 1]             0             1
  tolerance           |      double  1e-16          []             1             0


changeset:   6101:f22b49031d081323d6c6ce18eccbb12c80240b22
user:        Anders Logg <logg@xxxxxxxxx>
date:        Fri May 08 14:11:28 2009 +0200
files:       ChangeLog dolfin/parameter/NewParameter.cpp dolfin/parameter/NewParameter.h dolfin/parameter/Parameters.cpp dolfin/parameter/Parameters.h dolfin/parameter/dolfin_parameter.h sandbox/misc/cpp/main.cpp
description:
Add initial version of new parameter system. See test in sandbox/misc.

Implementation similar to before, but much simplified as a result of
removing the ParameterValue class and subclassing (New)Parameter directly.

Implementation consists of two classes: Parameters and (New)Parameter.
Only supports int and double so far. Range checks implemented.

Check if this looks ok. Will continue to add more features.

----------------------------------------------------------------------
For more details, visit http://www.fenics.org/hg/dolfin