[petsc-users] info about MatPreallocateInitialize/Finalize
Barletta, Ivano
ibarletta at inogs.it
Fri Jun 23 07:46:03 CDT 2017
Dear all
How does MatPreallocateInitialize/Finalize work?
I don't see any reference for examples in the
online manual, soI've browsed the source code
to see whetherthe routine is used and how
As far as I understood it works this way:
call MatPreallocateInitialize(comm, rows, cols, d_nz,o_nz,ierr)
! do something to calculate d_nz and o_nz
call MatXXXSetPreallocation
call MatPreallocateFinalize
It is not that clear the way d_nz and o_nz are
computed. Do I need to provide them myself?
(in that case what would be the point of using
MatPreallocateInitialize/Finalize?)
Thanks
Ivano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20170623/73978f1b/attachment.html>
More information about the petsc-users
mailing list