MAT_SHARE_NONZERO_PATTERN

Issue #46 resolved
Murat Keceli created an issue

MatDuplicate in PETSc has MAT_SHARE_NONZERO_PATTERN option, but I guess petsc4py does not have it. Is there any way to enable it, i.e with command line options?

Comments (3)

  1. Lisandro Dalcin

    The only way to support it in branch maint in a backward compatible way is the following commit: c53a165

    Now you can do:

    dupmat = mat.duplicate(copy=2)
    
  2. Log in to comment