dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #22740
[Bug 767050] Re: PETScUserPreconditioner is not defined
** Changed in: dolfin
Status: New => Fix Committed
--
You received this bug notification because you are a member of DOLFIN
Team, which is subscribed to DOLFIN.
https://bugs.launchpad.net/bugs/767050
Title:
PETScUserPreconditioner is not defined
Status in DOLFIN:
Fix Committed
Bug description:
I suspect I found another swig problem: it is not possible in Python to derive a class from
PETScUserPreconditioner. The code
from dolfin import *
class DiagonalPreconditioner(PETScUserPreconditioner) :
def __init__(self) :
PETScUserPreconditioner.__init__(self)
fails with
NameError: name 'PETScUserPreconditioner' is not defined
(The corresponding line in dolfin/swig/import/la.i is indeed missing, but I'm not sure if that
is the whole problem.)
References