This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

dolfin.PETScMatrix does not exist in FEniCS 2017.1

0 votes

After updating to FEniCS 2017.1 and trying:

import dolfin as df
a = df.PETScMatrix()

we get

E   AttributeError: 'module' object has no attribute 'PETScMatrix'

It seems PETScMatrix is not in dolfin anymore. Can anybody tell us where is it now?

asked May 12, 2017 by mb1a15 FEniCS Novice (260 points)

1 Answer

0 votes

Hi,

it has nothing to do just with a matrix. Run

print df.linear_algebra_backends()

and you'll see you have no PETSc backend. How did you install FEniCS? If I use docker-way with the latest image PETSc is available.

answered May 12, 2017 by mhabera FEniCS User (1,890 points)
...