LinearOperator can't be used by petsc4py

Issue #336 resolved
Jan Blechta created an issue

PETScLinearOperator.mat() returns petsc4py.PETSc.Mat. But

  • PETScLinearOperator can't be initialized. It provides only empty constructor and its init_layout method is protected.
  • LinearOperator (which works, see test/unit/la/python/LinearOperator.py) can't be downcasted to PETScLinearOperator using static as_backend_type or any other member method. Maybe something little is just missing in dolfin/swig/la/post.i.

Comments (3)

  1. Log in to comment