← Back to team overview

dolfin team mailing list archive

New parameter name for solution file: \"solution file name\". [...]

 

Commit from logg (2005-12-20 21:06 CET)
----------------

New parameter name for solution file: "solution file name".

Default value is "solution.pvd". All modules should obey this
parameter if possible or declare new parameters for the solution file
name(s) so that the output format and file name can be specified from
a user program.

The following now works for the Poisson solver:

    PoissonSolver poisson(mesh, f, bc);
    poisson.set("solution file name", "solution.m");
    poisson.solve();

Specifying a parameter with poisson.set() only affects the parameter
in the database local to the PoissonSolver object. If the parameter
is not specified, the value is inherited from the global database.

Temporarily changed the name of the parameter for output file name for
the ODE solvers to "ode solution file name". The default for the ODE
solvers needs to be different from "solution.pvd" (should be "solution.py"
or "solution.m"). This will be fixed when the ODE solvers have moved
to localized parameter databases: ode.set("...", ...).

  dolfin  src/demo/solvers/elasticity-updated/main.cpp     1.43
  dolfin  src/demo/solvers/heat/main.cpp                   1.12
  dolfin  src/demo/solvers/ode/reaction/main.cpp           1.33
  dolfin  src/demo/solvers/ode/residual/main.cpp           1.5
  dolfin  src/demo/solvers/poisson/main.cpp                1.39
  dolfin  src/kernel/ode/Homotopy.cpp                      1.27
  dolfin  src/kernel/ode/TimeStepper.cpp                   1.86
  dolfin  src/kernel/parameter/dolfin/DefaultParameters.h  1.3
  dolfin  src/modules/poisson/PoissonSolver.cpp            1.41
  dolfin  src/modules/poisson/dolfin/PoissonSolver.h       1.9
  dolfin  src/test/main.cpp                                1.17