Ambiguity for PETScMatrix class

Issue #530 resolved
Prof Garth Wells created an issue

PETScMatrix derives from both GenericLinearOperator and PETScBaseMatrix, which causes problems in classes like PETScKrylovSolver which have interface for both GenericLinearOperator and PETScBaseMatrix. The problem is that we can't pass a PETScMatrix when there are members functions for both GenericLinearOperatorandPETScBaseMatrix` because the compiler can't figure out which one to use.

A solution is to remove PETScBaseMatrix, see https://www.mail-archive.com/fenics@fenicsproject.org/msg02614.html.

Comments (2)

  1. Log in to comment