[petsc-users] MatSetValues in runtime

Massoud Rezavand msdrezavand at gmail.com
Mon Dec 5 10:49:31 CST 2016


Dear Petsc team,

In order to create a parallel matrix and solve by KSP, is it possible to
directly use MatSetValues() in runtime when each matrix entry is just
created  without MatMPIAIJSetPreallocation()?

I mean, when you only know the global size of Mat, and the number of
nonzeros per row is not constant neither for all rows nor during time, is
it possible to set the singular entries into Mat one by one after creating
each one?

Thanks
Massoud
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20161205/cf7b3976/attachment.html>


More information about the petsc-users mailing list