Is it necessary to call MatAssembly*() with MatSetValue()
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
Fixed in https://gitlab.com/petsc/petsc/-/merge_requests/6423 Jose
El 6 may 2023, a las 9:16, gaochenyi14 <[email protected]> escribió:
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
participants (2)
-
gaochenyi14 -
Jose E. Roman