← Back to team overview

dolfin team mailing list archive

[Bug 706330] Re: PETScMatrix doesn't work properly from Python

 

Could it be an issue that PETScMatrix is a subclass of PETScBaseMatrix
as well as GenericMatrix? (in terms of the SWIG wrappers)

-- 
You received this bug notification because you are a member of DOLFIN
Team, which is subscribed to DOLFIN.
https://bugs.launchpad.net/bugs/706330

Title:
  PETScMatrix doesn't work properly from Python

Status in DOLFIN:
  Confirmed

Bug description:
  Some Python demos (e.g. la/eigenvalue/python) are failing because of a
  problem with the use of PETScMatrix (Matrix seems to be fine).

  The error during assembly is weird:

  python: /home/garth/code/fenics/dolfin.d/dolfin-
  all/dolfin/la/PETScMatrix.cpp:271: virtual void
  dolfin::PETScMatrix::setrow(dolfin::uint, ....

  PETScMatrix::setrow shouldn't be called. Is there a problem with the
  SWIG typemaps (that is't trying to copy data)?





References