[petsc-dev] [petsc-maint] Complementarity problems: vinewton?sls or tao_?s?ls

Patrick Farrell patrick.farrell at maths.ox.ac.uk
Thu Mar 12 13:42:54 CDT 2015


On 10/03/15 09:06, Lisandro Dalcin wrote:
> CC-ing petsc-dev
>
> On 10 March 2015 at 03:08, Patrick Farrell
> <patrick.farrell at maths.ox.ac.uk> wrote:
>> I personally think that if the user hasn't supplied a getSubMatrix method in
>> Python, that the Mat shouldn't have a mat->ops->getsubmatrix --- but maybe
>> that
>> isn't feasible or easy.

I know this suggestion isn't the cleanest, but could Jason's code
try mat->ops->getsubmatrix, and if that fails fall back to the
shell matrix code?

Patrick



More information about the petsc-dev mailing list