[petsc-users] MatConvert changes distribution of local rows

Pierre Jolivet pierre at joliv.et
Fri Jan 13 01:58:26 CST 2023


> On 13 Jan 2023, at 8:49 AM, Marius Buerkle <mbuerkle at web.de> wrote:
> 
> Hi,
>  
> I have a matrix A for which I defined the number of local rows per process manually using MatSetSizes. When I use MatConvert to change the matrix type it changes the number of local rows (to what one would get if MatSetSize is called with PETSC_DECIDE for number of local rows), which causes problems when doing MatVec producs and stuff like that. Is there any way to preserve the the number of local rows when using MatConvert?

This is most likely a bug, it’s not handled properly in some MatConvert() implementations.
Could you please share either the matrix types or a minimal working example?

Thanks,
Pierre

>  
> Best,
> Marius

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230113/48bf2d53/attachment.html>


More information about the petsc-users mailing list