Seems like it's confgured without petsc4py support. What's the output of from dolfin import * has_petsc4py()
Jan On Thu, 8 Jan 2015 16:18:52 +0100 Joachim Berdal Haga <[email protected]> wrote: > Hi, > > I just installed dolfin from the fenics-PPA on a new computer. > Petsc4py is also installed from the PPA. Both dolfin and petsc4py > work, but when I try to use them together, I get the error below. > > Is it intentional that this isn't supported in the PPA? Or is it > something that can be supported (in a reasonable time frame)? > > > === > File "/home/jobh/src/cbc.block/block/algebraic/petsc/precond.py", > line 12, in __init__ > Ad = A.down_cast().mat() > [...] > *** > ------------------------------------------------------------------------- > *** Error: Unable to access PETScMatrix objects in python. > *** Reason: dolfin must be configured with petsc4py enabled. > *** Where: This error was encountered inside dolfin/swig/la/post.i. > *** Process: unknown > *** > *** DOLFIN version: 1.4.0 > *** Git changeset: unknown > *** > ------------------------------------------------------------------------- > > _______________________________________________ fenics-support mailing list [email protected] http://fenicsproject.org/mailman/listinfo/fenics-support
