dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #12887
Re: matrix action
On Saturday 04 April 2009 15:00:38 Robert Kirby wrote:
> Garth, Thanks, this looks like the interface I need. I can just fill in
> the virtual functions if I work in C++
> Any possibility of swigging uBLASKrylovMatrix and letting programmers fill
> in the methods in Python? There
> are mechanisms for setting up callbacks.
Both classes chould now be available from the python interface. Directors are
also turned on, so callback functions for the virtual functions should work.
I have not used or test them so do not expect them to "just work" ;) Neither
can I find any implemented c++ demos that use the classes.
Johan
>
> Rob
>
> On Fri, Apr 3, 2009 at 10:15 PM, Garth N. Wells <gnw20@xxxxxxxxx> wrote:
> > Robert Kirby wrote:
> >> Hi all,
> >> Does DOLFIN support the notion of a "matrix action", what would be an
> >> "Operator" in Trilinos or a "matrix shell" in PETSc?
> >
> > Take a look at dolfin/la/uBLASKyrlovMatrix.h and
> > dolfin/la/PETScKyrlovMatrix.h. The latter is a wrapper for a PETSc
> > 'matrix shell'. The FooKrylovMatrix classes are not derived from
> > GenericMatrix and I don't think that they've been used very extensively.
> > They are used by the ODE solvers.
> >
> > Garth
Follow ups
References