On Thu, Oct 22, 2009 at 10:35 PM, Anders Logg <logg@xxxxxxxxx> wrote:
On Thu, Oct 22, 2009 at 09:47:39PM +0200, Ola Skavhaug wrote:
I see that it is possible to write to the options database in SLEPc
and PETSc by sending a couple of strings to a function. Should we add
a loophole in DOLFIN to get access to this database? The issue is
particularly relevant from Python.
Cheers,
How about subclassing Parameters to get a new class PETScParameters
and then let that class call the appropriate PETSc function whenever a
parameter is updated. Then we can add this as a nested parameter set
for the global DOLFIN parameters:
parameters["petsc"]["foo"] = bar:
That's probably the way to go with it.
Someone (tm) should with it down on launchpad so I can do it in a
couple of weeks, when I have time.