[petsc-users] Is it necessary to call MatAssembly*() with MatSetValue()

gaochenyi14 gaochenyi14 at 163.com
Sat May 6 02:16:23 CDT 2023


Hi,


By `find` and `grep`, I find that in many PETSc examples `MatAssembly*()` are called after `MatSetValue()`. But in the C/Fortran API manual, the man page of `MatAssembly*()` does not say it is necessary for `MatSetValue()`. And the man page of `MatSetValue()` does not say it is a must to call `MatAssembly*()` afterwards.


Is the man page of `MatSetValue()` up-to-date, or it lacks the reminder for the necessity of calling `MatAssembly*()`?


Best regards,
C.-Y. GAO
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230506/4d6ce632/attachment.html>


More information about the petsc-users mailing list