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

Jose E. Roman jroman at dsic.upv.es
Sat May 6 04:35:50 CDT 2023


Fixed in https://gitlab.com/petsc/petsc/-/merge_requests/6423

Jose


> El 6 may 2023, a las 9:16, gaochenyi14 <gaochenyi14 at 163.com> 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



More information about the petsc-users mailing list