MatPreallocatorPreallocate in petscpy

Issue #138 closed
Octavio Castillo Reyes created an issue

Dear developers,

I would like to know-how to use the MatPreallocatorPreallocate (https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatPreallocatorPreallocate.html) within petsc4py. Is it implemented in petsc4py?

This method is very useful to automatize the matrix allocation.

Thank you!

Comments (4)

  1. Patrick Farrell

    Hi @Octavio Castillo Reyes . Most development in petsc4py happens by users who need something or other wrapped. If you look at the source for petsc4py, it shouldn't be too hard to figure out how to implement a wrapper for the method you're looking for.

  2. Log in to comment