← Back to team overview

dolfin team mailing list archive

Re: Communicating with SLEPc and PETSc

 

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:

--
Anders

Attachment: signature.asc
Description: Digital signature


Follow ups

References