← Back to team overview

dolfin team mailing list archive

Re: Communicating with SLEPc and PETSc

 

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.

Ola

> --
> Anders
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAkrgwfcACgkQTuwUCDsYZdF1swCfResOXzC96Hu59CRyKQxp7X67
> tfwAmwarpOhS/GRqTz0cE1RLzLCpnHoe
> =WN8l
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev
>
>



-- 
Ola Skavhaug


Follow ups

References